<!DOCTYPE html>



  


<html class="theme-next gemini use-motion" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.8.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">
<script>
    (function () {
        if ('') {
            if (prompt('请输入文章密码') !== '') {
                alert('密码错误！');
                if (history.length === 1) {
                    location.replace("https://google.com"); // 这里替换成你的首页
                } else {
                    history.back();
                }
            }
        }
    })();
</script>








<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">

<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="Hexo, NexT">










<meta property="og:type" content="website">
<meta property="og:title" content="苏生不惑的博客">
<meta property="og:url" content="http://yoursite.com/page/30/index.html">
<meta property="og:site_name" content="苏生不惑的博客">
<meta property="og:locale" content="zh-Hans">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="苏生不惑的博客">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Gemini',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://yoursite.com/page/30/">



<meta name="referrer" content="never"> ​​​​


  <title>苏生不惑的博客</title>
  








</head>

<body itemscope="" itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left 
  page-home">
    <div class="headband"></div>

    <header id="header" class="header" itemscope="" itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">苏生不惑的博客</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br>
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br>
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br>
            
            归档
          </a>
        </li>
      

      
        <li class="menu-item menu-item-search">
          
            <a href="javascript:;" class="popup-trigger">
          
            
              <i class="menu-item-icon fa fa-search fa-fw"></i> <br>
            
            搜索
          </a>
        </li>
      
    </ul>
  

  
    <div class="site-search">
      
  <div class="popup search-popup local-search-popup">
  <div class="local-search-header clearfix">
    <span class="search-icon">
      <i class="fa fa-search"></i>
    </span>
    <span class="popup-btn-close">
      <i class="fa fa-times-circle"></i>
    </span>
    <div class="local-search-input-wrapper">
      <input autocomplete="off" placeholder="搜索..." spellcheck="false" type="text" id="local-search-input">
    </div>
  </div>
  <div id="local-search-result"></div>
</div>



    </div>
  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            
  <section id="posts" class="posts-expand">
    
      

  

  
  
  

  <article class="post post-type-normal" itemscope="" itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2019/08/27/有意思的举牌告白小人/">

    <span hidden itemprop="author" itemscope="" itemtype="http://schema.org/Person">
      <meta itemprop="name" content="苏生不惑">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope="" itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="苏生不惑的博客">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/2019/08/27/有意思的举牌告白小人/" itemprop="url">有意思的举牌告白小人</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-08-27T20:36:49+08:00">
                2019-08-27
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          
            <div class="post-wordcount">
              
                
                  <span class="post-meta-divider">|</span>
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  496 字
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  1 分钟
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>偶然看到这个图片，感觉挺有意思。<br><img src="https://upload-images.jianshu.io/upload_images/17817191-5b9b42dd9c7db512.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image.png"></p>
<p>搜索了下发现有网站<a href="http://upuptoyou.com/" target="_blank" rel="noopener">http://upuptoyou.com/</a> 提供生成这种图片服务，这种举牌小人来自一个台湾插画家设计。</p>
<blockquote>
<p>举牌小人是由台湾插画家李翰旗下的翰你设计，与啧室股份有限公司旗下的集资平台“啧啧”，于2013年联名推出的网页应用程序，将用户想要表达的消息，以举牌文字数组的方式形成图片，由于支持多国语言，加上文字可随用户任意变化的缘故，因此引发网络爆红效应。</p>
</blockquote>
<p>可惜这个网站在国外，有时候访问慢<a href="https://small-upup.upuptoyou.com/" target="_blank" rel="noopener">https://small-upup.upuptoyou.com/</a><br><img src="https://upload-images.jianshu.io/upload_images/17817191-6c53826f49282092.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image.png"></p>
<p>搜索了下很多网站都有这个功能，比如 <a href="http://www.nicetool.net/app/hold_up.html" target="_blank" rel="noopener">http://www.nicetool.net/app/hold_up.html</a> 输入文字就能在线生成了。<br><img src="https://upload-images.jianshu.io/upload_images/17817191-8fbad7ba2fc104d5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image.png"></p>
<p><a href="http://www.gaituba.com/jupaixiaoren/" target="_blank" rel="noopener">http://www.gaituba.com/jupaixiaoren/</a> 这个网站还能设置背景颜色什么的。<br><img src="https://upload-images.jianshu.io/upload_images/17817191-5b2752bae8b3b38e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image.png"></p>
<p>再搜索了下，有人开源了这个功能。<a href="https://github.com/jokin1999/HoldUpSign" target="_blank" rel="noopener">https://github.com/jokin1999/HoldUpSign</a> 有服务器可以自己搭建一个了。<br><img src="https://upload-images.jianshu.io/upload_images/17817191-66700f167629ccd9.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image.png"></p>
<p>它也提供了在线生成 <a href="http://1.hus.tcapps.twocola.com/" target="_blank" rel="noopener">http://1.hus.tcapps.twocola.com/</a><br><img src="https://upload-images.jianshu.io/upload_images/17817191-b2086ec141761033.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image.png"></p>
<p>输入 <code>欢迎关注公众号苏生不惑</code>，效果如下：<br><img src="https://upload-images.jianshu.io/upload_images/17817191-7264fdba6136568c.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image.png"><br>当然还有小程序，比如这个 <code>举牌小人</code><br><img src="https://upload-images.jianshu.io/upload_images/17817191-46ca8ad928d7bfa6.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image.png"></p>
<p>我用了下效果还可以。</p>
<p>最后<br><img src="https://upload-images.jianshu.io/upload_images/17817191-f5d2f1d92f69a07f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image.png"></p>
<h3 id="资源"><a href="#资源" class="headerlink" title="资源"></a>资源</h3><p><a href="http://www.nicetool.net/app/hold_up.html" target="_blank" rel="noopener">http://www.nicetool.net/app/hold_up.html</a><br><a href="https://emotion.yunser.com/up" target="_blank" rel="noopener">https://emotion.yunser.com/up</a><br><a href="http://www.atoolbox.net/Tool.php?Id=789" target="_blank" rel="noopener">http://www.atoolbox.net/Tool.php?Id=789</a><br><a href="https://www.jiuwa.net/jupai/" target="_blank" rel="noopener">https://www.jiuwa.net/jupai/</a><br><a href="http://www.vszj.cn/Drawing/XiaoRen1" target="_blank" rel="noopener">http://www.vszj.cn/Drawing/XiaoRen1</a><br><a href="http://www.gaituba.com/jupaixiaoren/" target="_blank" rel="noopener">http://www.gaituba.com/jupaixiaoren/</a><br><a href="https://github.com/idle-dog/upup" target="_blank" rel="noopener">https://github.com/idle-dog/upup</a><br><a href="https://minapp.com/miniapp/3668/" target="_blank" rel="noopener">https://minapp.com/miniapp/3668/</a><br><a href="https://wxapp.top/app/14660" target="_blank" rel="noopener">https://wxapp.top/app/14660</a></p>
<p>推荐阅读:</p>
<p><a href="https://mp.weixin.qq.com/s/Xz1m-mqtCcBF_4hmGCpkUQ" target="_blank" rel="noopener">如何发一条空白的朋友圈</a></p>
<p><a href="https://mp.weixin.qq.com/s/_3AeNahwbs8c3UJ0is1t4A" target="_blank" rel="noopener">如何在电脑上登陆多个微信</a></p>
<p><a href="https://mp.weixin.qq.com/s/qyFvOgHf1mXwPKO0tQwUyg" target="_blank" rel="noopener">如何提取公积金 9 天到账</a></p>
<p><a href="https://mp.weixin.qq.com/s/1omFkK5PPyeJEzUTagj9qg" target="_blank" rel="noopener">免费在线听周杰伦歌曲</a></p>
<p><a href="https://mp.weixin.qq.com/s/eGDO0Y8el_dsEyriCoAgog" target="_blank" rel="noopener">那些你可能不知道的微信奇技淫巧</a></p>
<p><a href="https://mp.weixin.qq.com/s/k5lBwiDzGgSU3fh2v2Rw9A" target="_blank" rel="noopener">如何在豆瓣租房小组快速找到满意的房子</a></p>
<p><a href="https://mp.weixin.qq.com/s/sng3uK9Nge1OD2gc5DDuZg" target="_blank" rel="noopener">那些你可能用得上的简历写作工具</a></p>
<p><a href="https://mp.weixin.qq.com/s/adJFh_9LH0N-vvvYaiQqXg" target="_blank" rel="noopener">Chrome 浏览器扩展神器油猴</a></p>
<p><a href="https://mp.weixin.qq.com/s/mI5kubVY2t5jwJ9ub7A1iA" target="_blank" rel="noopener">我的新浪工作日常</a></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-393b26173c148690.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="免费星球"></p>
<h3 id="公众号：苏生不惑"><a href="#公众号：苏生不惑" class="headerlink" title="公众号：苏生不惑"></a>公众号：苏生不惑</h3><p> <img src="https://upload-images.jianshu.io/upload_images/17817191-6e0079f95d4c0338.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="扫描二维码关注"></p>

          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope="" itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2019/08/26/公众号开通原创功能了/">

    <span hidden itemprop="author" itemscope="" itemtype="http://schema.org/Person">
      <meta itemprop="name" content="苏生不惑">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope="" itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="苏生不惑的博客">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/2019/08/26/公众号开通原创功能了/" itemprop="url">公众号开通原创功能了</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-08-26T20:20:23+08:00">
                2019-08-26
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          
            <div class="post-wordcount">
              
                
                  <span class="post-meta-divider">|</span>
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  845 字
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  2 分钟
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>这是一篇旧文。</p>
<p>很喜欢张靓颖的这首《终于等到你》，网易云音乐链接 <a href="http://music.163.com/#/song?id=27836179" target="_blank" rel="noopener">http://music.163.com/#/song?id=27836179</a></p>
 <figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">1.  `作曲  :  董冬冬`</span><br><span class="line"></span><br><span class="line">2.  `作词  :  陈曦`</span><br><span class="line"></span><br><span class="line">3.  `到了某个年纪你就会知道`</span><br><span class="line"></span><br><span class="line">4.  `一个人的日子真的难熬`</span><br><span class="line"></span><br><span class="line">5.  `渐渐开始尝到孤单的味道`</span><br><span class="line"></span><br><span class="line">6.  `时间在敲打着你的骄傲`</span><br><span class="line"></span><br><span class="line">7.  `过了某个路口你就会感到`</span><br><span class="line"></span><br><span class="line">8.  `彻夜陪你聊天的越来越少`</span><br><span class="line"></span><br><span class="line">9.  `厌倦了被寂寞追着跑`</span><br><span class="line"></span><br><span class="line">10.  `找个爱你的人就想托付终老`</span><br><span class="line"></span><br><span class="line">11.  `能陪我走一程的人有多少`</span><br><span class="line"></span><br><span class="line">12.  `愿意走完一生的更是寥寥`</span><br><span class="line"></span><br><span class="line">13.  `是否刻骨铭心并没那么重要`</span><br><span class="line"></span><br><span class="line">14.  `只想在平淡中体会爱的味道`</span><br><span class="line"></span><br><span class="line">15.  `终于等到你  还好我没放弃`</span><br><span class="line"></span><br><span class="line">16.  `幸福来得好不容易`</span><br><span class="line"></span><br><span class="line">17.  `才会让人更加珍惜`</span><br><span class="line"></span><br><span class="line">18.  `终于等到你  差点要错过你`</span><br><span class="line"></span><br><span class="line">19.  `在最好的年纪遇到你`</span><br><span class="line"></span><br><span class="line">20.  `才算没有辜负自己`</span><br><span class="line"></span><br><span class="line">21.  `终于等到你`</span><br><span class="line"></span><br><span class="line">22.  `能陪我走一程的人有多少`</span><br><span class="line"></span><br><span class="line">23.  `愿意走完一生的更是寥寥`</span><br><span class="line"></span><br><span class="line">24.  `是否刻骨铭心并没那么重要`</span><br><span class="line"></span><br><span class="line">25.  `只想在平淡中体会爱的味道`</span><br><span class="line"></span><br><span class="line">26.  `终于等到你  还好我没放弃`</span><br><span class="line"></span><br><span class="line">27.  `幸福来得好不容易`</span><br><span class="line"></span><br><span class="line">28.  `才会让人更加珍惜`</span><br><span class="line"></span><br><span class="line">29.  `终于等到你  差点要错过你`</span><br><span class="line"></span><br><span class="line">30.  `在最好的年纪遇到你`</span><br><span class="line"></span><br><span class="line">31.  `才算没有辜负自己`</span><br><span class="line"></span><br><span class="line">32.  `终于等到你`</span><br><span class="line"></span><br><span class="line">33.  `终于等到你  还好我没放弃`</span><br><span class="line"></span><br><span class="line">34.  `幸福来得好不容易`</span><br><span class="line"></span><br><span class="line">35.  `才会让人更加珍惜`</span><br><span class="line"></span><br><span class="line">36.  `终于等到你  差点要错过你`</span><br><span class="line"></span><br><span class="line">37.  `在最好的年纪遇到你`</span><br><span class="line"></span><br><span class="line">38.  `才算没有辜负自己`</span><br><span class="line"></span><br><span class="line">39.  `终于等到你`</span><br></pre></td></tr></table></figure>
<p>今天登陆公众号发现微信居然邀请我开通原创功能了，终于等到你，真是太开心了， 记得是从 2016 年 9 月 8 号开始推送公众号的，一晃快一年了， 总共推送 58 次，更新频率比较慢。</p>
<p>开通这个号纯粹是兴趣，相比微博的吐槽，公众号更适合记录生活和技术。平常也是周末更新，每次更新大概要一个多小时，用的 markdown 排版（<a href="http://md.barretlee.com/），虽然不那么精美，但很省心，真佩服那些每天坚持推送的原创公众号。关于" target="_blank" rel="noopener">http://md.barretlee.com/），虽然不那么精美，但很省心，真佩服那些每天坚持推送的原创公众号。关于</a> markdown 简直写作神器，下次好好介绍一番。</p>
<p>本公众号大多数文章偏技术方向 （所以开通了另外一个号专门更新技术类文章），今后会更新些更生活更有趣的文章，欢迎持续关注。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-c7551533be0f2104?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>其中这篇文章阅读量最高<a href="https://mp.weixin.qq.com/s?__biz=MjM5ODIzNDExMg==&amp;mid=2257483679&amp;idx=1&amp;sn=1e8187e6533ad4bcb91358c75e2de73e&amp;chksm=a5b706f092c08fe667180375d45121171253ca843c6040c867eea7fc3d8081a2abe6c25b1026&amp;scene=21#wechat_redirect" target="_blank" rel="noopener">python 下载全民k歌歌曲</a></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-75c834b97b2c6cac?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>这篇点赞最高<a href="https://mp.weixin.qq.com/s?__biz=MjM5ODIzNDExMg==&amp;mid=2257483745&amp;idx=1&amp;sn=fb9ed12acb7b00b3a176fdd6ed813f20&amp;chksm=a5b7068e92c08f98fc70324b60326846ddf887f0cbeefc230bcaeb2c62944075762d23d669d1&amp;scene=21#wechat_redirect" target="_blank" rel="noopener">我的 2016 年</a></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-82f89947b1b93ba2?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>下面就开始开通原创功能了。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-f8146ac8fe37886c?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-247e33ec4eeb4803?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-3851e06459341c4d?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-8b31f9ce0fabe1c5?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-516040090898069e?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>微信审核速度还真快，大周末的，赞一个。</p>
<p>记得之前一位朋友说等我的公众号开通留言要来吐槽，现在开始公众号可以留言了， 不知道她还记得吗？小伙伴们，今后对我的公众号有任何意见欢迎留言吐槽哈，如果觉得无聊可以调戏下机器人<a href="http://mp.weixin.qq.com/s?__biz=MjM5ODIzNDExMg==&amp;mid=2257483922&amp;idx=1&amp;sn=536b41f7005b1dbbd3aafa9e47847717&amp;chksm=a5b709fd92c080ebe20f9214e2bef58bc61b28e9b263f702e7d03c23f59a8db93affd98ce464&amp;scene=21#wechat_redirect" target="_blank" rel="noopener">我的公众号机器人</a></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-52c93638029acb8d?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>最后发福利了，关注本公众号发送 红包 直接领取支付宝红包，来晚就没啦。</p>

          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope="" itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2019/08/26/我的微信公众号机器人/">

    <span hidden itemprop="author" itemscope="" itemtype="http://schema.org/Person">
      <meta itemprop="name" content="苏生不惑">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope="" itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="苏生不惑的博客">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/2019/08/26/我的微信公众号机器人/" itemprop="url">我的微信公众号机器人</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-08-26T20:18:54+08:00">
                2019-08-26
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          
            <div class="post-wordcount">
              
                
                  <span class="post-meta-divider">|</span>
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  1k 字
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  5 分钟
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>这是一篇旧文。</p>
<p>最近北京进入高温天气，最高气温 36 度，太热了。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-b241537f08a9982d?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>最近一朋友创业开发一棋牌游戏，买了台阿里云服务器，帮他做了个后台，想着不能浪费资源，记得之前用我的个人微信玩过微信机器人，于是想着给公众号也接一个机器人，于是就有了这个公众号的机器人，下面开始说说怎么开发的。</p>
<p>第一步当然是注册公众号了，这个简单了，就不说了，然后在基本配置里设置服务器地址和 token，需要注意的是服务器需要能在外网访问，80 端口能访问。如果没有自己的外网服务器，也可以使用开源的 ngrok.com ngrok.cc frp 什么的，我没有测试过，你可以尝试下。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-a59e60900d1d8f71?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>机器人是基于图灵的，所以再去 <a href="http://www.tuling123.com/" target="_blank" rel="noopener">http://www.tuling123.com/</a> 用手机号注册个账号，申请 key 在 <a href="http://www.tuling123.com/member/center/index.jhtml" target="_blank" rel="noopener">http://www.tuling123.com/member/center/index.jhtml</a> 这个页面可以看到，免费的次数每天 5000，应该够了，功能也比较多全。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-ee2d6fdfc64dea56?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-04a2be68c9cfc55f?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-1a8cf6872194ff21?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>下面开始写代码了，我用的是 PHP 比较简单了，才 100 行代码左右，调用也简单。需要注意微信是用 xml 传输的，所以需要转换下。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br><span class="line">191</span><br><span class="line">192</span><br><span class="line">193</span><br><span class="line">194</span><br><span class="line">195</span><br><span class="line">196</span><br><span class="line">197</span><br><span class="line">198</span><br><span class="line">199</span><br><span class="line">200</span><br><span class="line">201</span><br><span class="line">202</span><br><span class="line">203</span><br><span class="line">204</span><br><span class="line">205</span><br></pre></td><td class="code"><pre><span class="line">1.  `&lt;?php`</span><br><span class="line"></span><br><span class="line">2.  `define(&quot;TOKEN&quot;,  &quot;mybot&quot;);`</span><br><span class="line"></span><br><span class="line">3.  `$wechatObj =  new wechatCallbackapi();`</span><br><span class="line"></span><br><span class="line">5.  `//验证微信和响应合并`</span><br><span class="line"></span><br><span class="line">6.  `if  (isset($_GET[&apos;echostr&apos;]))  &#123;`</span><br><span class="line"></span><br><span class="line">7.  `$wechatObj-&gt;valid();`</span><br><span class="line"></span><br><span class="line">8.  `&#125;  else  &#123;`</span><br><span class="line"></span><br><span class="line">9.  `$wechatObj-&gt;responseMsg();`</span><br><span class="line"></span><br><span class="line">11.  `&#125;`</span><br><span class="line"></span><br><span class="line">13.  `class wechatCallbackapi&#123;`</span><br><span class="line"></span><br><span class="line">14.  `public  function valid()&#123;`</span><br><span class="line"></span><br><span class="line">15.  `$echoStr = $_GET[&quot;echostr&quot;];`</span><br><span class="line"></span><br><span class="line">16.  `if($this-&gt;checkSignature())&#123;`</span><br><span class="line"></span><br><span class="line">17.  `echo $echoStr;`</span><br><span class="line"></span><br><span class="line">18.  `exit;`</span><br><span class="line"></span><br><span class="line">19.  `&#125;`</span><br><span class="line"></span><br><span class="line">20.  `&#125;`</span><br><span class="line"></span><br><span class="line">21.  `public  function responseMsg()&#123;`</span><br><span class="line"></span><br><span class="line">22.  `//接受微信服务器发过来的数据`</span><br><span class="line"></span><br><span class="line">23.  `//$postStr = $GLOBALS[&quot;HTTP_RAW_POST_DATA&quot;];`</span><br><span class="line"></span><br><span class="line">24.  `$postObj =  [];`</span><br><span class="line"></span><br><span class="line">25.  `$postStr = file_get_contents(&apos;php://input&apos;);`</span><br><span class="line"></span><br><span class="line">26.  `if  (!empty($postStr))&#123;`</span><br><span class="line"></span><br><span class="line">27.  `$postObj =  (array)simplexml_load_string($postStr,  &apos;SimpleXMLElement&apos;, LIBXML_NOCDATA);`</span><br><span class="line"></span><br><span class="line">28.  `&#125;`</span><br><span class="line"></span><br><span class="line">29.  `switch($postObj[&apos;MsgType&apos;])&#123;`</span><br><span class="line"></span><br><span class="line">30.  `case  &quot;text&quot;:`</span><br><span class="line"></span><br><span class="line">31.  `$resultStr = $this-&gt;handleText($postObj,$userinfo_base[&apos;uid&apos;],$link);`</span><br><span class="line"></span><br><span class="line">32.  `break;`</span><br><span class="line"></span><br><span class="line">33.  `default:`</span><br><span class="line"></span><br><span class="line">34.  `$resultStr =  &quot;Unknow msg type&quot;;`</span><br><span class="line"></span><br><span class="line">35.  `break;`</span><br><span class="line"></span><br><span class="line">36.  `&#125;`</span><br><span class="line"></span><br><span class="line">37.  `echo $resultStr;`</span><br><span class="line"></span><br><span class="line">38.  `&#125;`</span><br><span class="line"></span><br><span class="line">40.  `private  function handleText($postObj,$uid,$link)  &#123;`</span><br><span class="line"></span><br><span class="line">41.  `$keyword = trim($postObj[&apos;Content&apos;]);`</span><br><span class="line"></span><br><span class="line">42.  `$res = file_get_contents(&apos;http://www.tuling123.com/openapi/api?key=youkey&amp;info=&apos;.urlencode($keyword));// 这里用自己申请的 key`</span><br><span class="line"></span><br><span class="line">43.  `$contentStr = json_decode($res,  1)[&apos;text&apos;];`</span><br><span class="line"></span><br><span class="line">44.  `$resultStr = $this-&gt;responseText($postObj,$contentStr);`</span><br><span class="line"></span><br><span class="line">45.  `return $resultStr;`</span><br><span class="line"></span><br><span class="line">46.  `&#125;`</span><br><span class="line"></span><br><span class="line">48.  `//回复文字信息`</span><br><span class="line"></span><br><span class="line">49.  `private  function responseText($postObj,$contentStr)  &#123;`</span><br><span class="line"></span><br><span class="line">50.  `$toUsername = $postObj[&apos;ToUserName&apos;];`</span><br><span class="line"></span><br><span class="line">51.  `$textTpl =  &quot;&lt;xml&gt;`</span><br><span class="line"></span><br><span class="line">52.  `&lt;ToUserName&gt;&lt;![CDATA[%s]]&gt;&lt;/ToUserName&gt;`</span><br><span class="line"></span><br><span class="line">53.  `&lt;FromUserName&gt;&lt;![CDATA[%s]]&gt;&lt;/FromUserName&gt;`</span><br><span class="line"></span><br><span class="line">54.  `&lt;CreateTime&gt;%s&lt;/CreateTime&gt;`</span><br><span class="line"></span><br><span class="line">55.  `&lt;MsgType&gt;&lt;![CDATA[%s]]&gt;&lt;/MsgType&gt;`</span><br><span class="line"></span><br><span class="line">56.  `&lt;Content&gt;&lt;![CDATA[%s]]&gt;&lt;/Content&gt;`</span><br><span class="line"></span><br><span class="line">57.  `&lt;/xml&gt;&quot;;`</span><br><span class="line"></span><br><span class="line">58.  `$resultStr = sprintf($textTpl,FROMUSERNAME,$toUsername,time(),&apos;text&apos;,$contentStr);`</span><br><span class="line"></span><br><span class="line">59.  `return $resultStr;`</span><br><span class="line"></span><br><span class="line">60.  `&#125;`</span><br><span class="line"></span><br><span class="line">62.  `//回复图文信息 这里没有用到`</span><br><span class="line"></span><br><span class="line">63.  `private  function responseNews($postObj,$contentStr)  &#123;`</span><br><span class="line"></span><br><span class="line">64.  `$toUsername = $postObj[&apos;ToUserName&apos;];`</span><br><span class="line"></span><br><span class="line">65.  `$news=&quot;&lt;xml&gt;`</span><br><span class="line"></span><br><span class="line">66.  `&lt;ToUserName&gt;&lt;![CDATA[%s]]&gt;&lt;/ToUserName&gt;`</span><br><span class="line"></span><br><span class="line">67.  `&lt;FromUserName&gt;&lt;![CDATA[%s]]&gt;&lt;/FromUserName&gt;`</span><br><span class="line"></span><br><span class="line">68.  `&lt;CreateTime&gt;%s&lt;/CreateTime&gt;`</span><br><span class="line"></span><br><span class="line">69.  `&lt;MsgType&gt;&lt;![CDATA[%s]]&gt;&lt;/MsgType&gt;` </span><br><span class="line"></span><br><span class="line">70.  `&lt;ArticleCount&gt;%d&lt;/ArticleCount&gt;`</span><br><span class="line"></span><br><span class="line">71.  `&lt;Articles&gt;%s&lt;/Articles&gt;`</span><br><span class="line"></span><br><span class="line">72.  `&lt;/xml&gt;&quot;;`</span><br><span class="line"></span><br><span class="line">73.  `$itemTpl =  &apos;&lt;item&gt;`</span><br><span class="line"></span><br><span class="line">74.  `&lt;Title&gt;&lt;![CDATA[%s]]&gt;&lt;/Title&gt;`</span><br><span class="line"></span><br><span class="line">75.  `&lt;Discription&gt;&lt;![CDATA[%s]]&gt;&lt;/Discription&gt;`</span><br><span class="line"></span><br><span class="line">76.  `&lt;PicUrl&gt;&lt;![CDATA[%s]]&gt;&lt;/PicUrl&gt;`</span><br><span class="line"></span><br><span class="line">77.  `&lt;Url&gt;&lt;![CDATA[%s]]&gt;&lt;/Url&gt;`</span><br><span class="line"></span><br><span class="line">78.  `&lt;/item&gt;&apos;;`</span><br><span class="line"></span><br><span class="line">79.  `$items =  &apos;&apos;;`</span><br><span class="line"></span><br><span class="line">80.  `foreach ($contentStr as $v)  &#123;`</span><br><span class="line"></span><br><span class="line">81.  `if(is_array($v))&#123;`</span><br><span class="line"></span><br><span class="line">82.  `//多图文`</span><br><span class="line"></span><br><span class="line">83.  `$items .= sprintf($itemTpl, $v[&apos;Title&apos;], $v[&apos;Discription&apos;], $v[&apos;PicUrl&apos;], $v[&apos;Url&apos;]);`</span><br><span class="line"></span><br><span class="line">84.  `$num = count($contentStr);`</span><br><span class="line"></span><br><span class="line">85.  `&#125;else  &#123;`</span><br><span class="line"></span><br><span class="line">86.  `//单图文`</span><br><span class="line"></span><br><span class="line">87.  `$items= sprintf($itemTpl, $contentStr[&apos;Title&apos;], $contentStr[&apos;Discription&apos;], $contentStr[&apos;PicUrl&apos;], $contentStr[&apos;Url&apos;]);`</span><br><span class="line"></span><br><span class="line">88.  `$num =  1;`</span><br><span class="line"></span><br><span class="line">89.  `&#125;`</span><br><span class="line"></span><br><span class="line">90.  `&#125;`</span><br><span class="line"></span><br><span class="line">91.  `$resultStr = sprintf($news, FROMUSERNAME, $toUsername, time(),  &apos;news&apos;, $num,$items);`</span><br><span class="line"></span><br><span class="line">92.  `return $resultStr;`</span><br><span class="line"></span><br><span class="line">93.  `&#125;`</span><br><span class="line"></span><br><span class="line">94.  `//微信验证`</span><br><span class="line"></span><br><span class="line">95.  `private  function checkSignature()&#123;`</span><br><span class="line"></span><br><span class="line">96.  `$signature = $_GET[&quot;signature&quot;];`</span><br><span class="line"></span><br><span class="line">97.  `$timestamp = $_GET[&quot;timestamp&quot;];`</span><br><span class="line"></span><br><span class="line">98.  `$nonce = $_GET[&quot;nonce&quot;];` </span><br><span class="line"></span><br><span class="line">99.  `$token = TOKEN;`</span><br><span class="line"></span><br><span class="line">100.  `$tmpArr = array($token, $timestamp, $nonce);`</span><br><span class="line"></span><br><span class="line">101.  `sort($tmpArr);`</span><br><span class="line"></span><br><span class="line">102.  `$tmpStr = implode($tmpArr);`</span><br><span class="line"></span><br><span class="line">103.  `$tmpStr = sha1($tmpStr);`</span><br><span class="line"></span><br><span class="line">104.  `if($tmpStr == $signature)&#123;`</span><br><span class="line"></span><br><span class="line">105.  `return  true;`</span><br><span class="line"></span><br><span class="line">106.  `&#125;`</span><br><span class="line"></span><br><span class="line">107.  `return  false;`</span><br><span class="line"></span><br><span class="line">108.  `&#125;`</span><br><span class="line"></span><br><span class="line">109.  `&#125;`</span><br></pre></td></tr></table></figure>
<p>看看效果吧，常用关键字：笑话，天气，故事，段子，成语接龙，菜谱，更多玩法开始关注我的公众号玩吧，再也不用担心一个人无聊了。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-2b6cd6b2c7eb2039?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-bb258205e04588c4?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>太热了，要去洗澡了，bye。</p>

          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope="" itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2019/08/26/程序员式表白/">

    <span hidden itemprop="author" itemscope="" itemtype="http://schema.org/Person">
      <meta itemprop="name" content="苏生不惑">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope="" itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="苏生不惑的博客">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/2019/08/26/程序员式表白/" itemprop="url">程序员式表白</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-08-26T20:16:34+08:00">
                2019-08-26
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          
            <div class="post-wordcount">
              
                
                  <span class="post-meta-divider">|</span>
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  495 字
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  2 分钟
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>这是一篇旧文。</p>
<p>虐狗的 520 终于过去了，不知从什么时候开始，各种节日层出不穷：214 情人节，314 白色情人节，七夕情人节，双十一购物节，圣诞节 ，于是 520 也成了节日了，微信红包去年开始还特意在当天调整红包最大金额从 200 到 520 。</p>
<p>520 谐音 我爱你，也是个告白的好日子，想到告白可能最先联想到影视剧中男女主角人约黄昏后，共进晚餐，男主送上礼物，比如：</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-69d75e0d8a434130?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-995ec9426f379f53?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-6ff49863763b2412?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-0fed5cca0472de80?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>然后手持玫瑰，深情告白女主，女主默默收下，害羞而又兴奋。</p>
<p>作为程序员有什么独特的告白方式呢？</p>
<p>0.先送上一支花 <a href="https://sushengbuhuo.github.io/flower.html" target="_blank" rel="noopener">https://sushengbuhuo.github.io/flower.html</a></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-72863e0c461721fb?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>1.给她一颗炽热的 ❤ <a href="http://res.crossincode.com/other/heart.html" target="_blank" rel="noopener">http://res.crossincode.com/other/heart.html</a></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-a3aec78a4e02d17a?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>2.用Python 输出 ❤</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">print(&apos;\n&apos;.join([&apos;&apos;.join([(&apos;Love&apos;[(x-y)  % len(&apos;Love&apos;)]  if  ((x*0.05)**2+(y*0.1)**2-1)**3-(x*0.05)**2*(y*0.1)**3  &lt;=  0  else  &apos; &apos;)  for x in range(-30,  30)])  for y in range(30,  -30,  -1)]))</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">               veLoveLov           veLoveLov</span><br><span class="line">           eLoveLoveLoveLove   eLoveLoveLoveLove</span><br><span class="line">         veLoveLoveLoveLoveLoveLoveLoveLoveLoveLov</span><br><span class="line">        veLoveLoveLoveLoveLoveLoveLoveLoveLoveLoveL</span><br><span class="line">       veLoveLoveLoveLoveLoveLoveLoveLoveLoveLoveLov</span><br><span class="line">       eLoveLoveLoveLoveLoveLoveLoveLoveLoveLoveLove</span><br><span class="line">       LoveLoveLoveLoveLoveLoveLoveLoveLoveLoveLoveL</span><br><span class="line">       oveLoveLoveLoveLoveLoveLoveLoveLoveLoveLoveLo</span><br><span class="line">       veLoveLoveLoveLoveLoveLoveLoveLoveLoveLoveLov</span><br><span class="line">       eLoveLoveLoveLoveLoveLoveLoveLoveLoveLoveLove</span><br><span class="line">        oveLoveLoveLoveLoveLoveLoveLoveLoveLoveLove</span><br><span class="line">         eLoveLoveLoveLoveLoveLoveLoveLoveLoveLove</span><br><span class="line">         LoveLoveLoveLoveLoveLoveLoveLoveLoveLoveL</span><br><span class="line">           eLoveLoveLoveLoveLoveLoveLoveLoveLove</span><br><span class="line">            oveLoveLoveLoveLoveLoveLoveLoveLove</span><br><span class="line">             eLoveLoveLoveLoveLoveLoveLoveLove</span><br><span class="line">               veLoveLoveLoveLoveLoveLoveLov</span><br><span class="line">                 oveLoveLoveLoveLoveLoveLo</span><br><span class="line">                   LoveLoveLoveLoveLoveL</span><br><span class="line">                      LoveLoveLoveLov</span><br><span class="line">                         LoveLoveL</span><br><span class="line">                            Lov</span><br><span class="line">                             v</span><br></pre></td></tr></table></figure>
<p>3.用一段莫斯密码 <a href="http://www.atool.org/morse.php" target="_blank" rel="noopener">http://www.atool.org/morse.php</a></p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">1.  `-..-/-..-/-..-/--..--/--...-....-...-/---..-...--...-/-..----.--.....`</span><br></pre></td></tr></table></figure>
<p>4.给她做一个油画般的头像 <a href="http://www.ostagram.ru/lenta?locale=en" target="_blank" rel="noopener">http://www.ostagram.ru/lenta?locale=en</a> <a href="http://upuptoyou.com" target="_blank" rel="noopener">http://upuptoyou.com</a></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-e6f6608831dbace9?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>5.让百度来帮你</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-2e6e1dfa9d2aae1f?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>6.一颗记录你们在一起时间的树 <a href="https://github.com/wuxia2001/loveyue" target="_blank" rel="noopener">https://github.com/wuxia2001/loveyue</a> <a href="http://app.ikow.cn/love/" target="_blank" rel="noopener">http://app.ikow.cn/love/</a> <a href="http://liandwu.com/" target="_blank" rel="noopener">http://liandwu.com/</a></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-6658048c939fec98?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>好了， 代码都写好了，就差一个妹子了。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-a178111f70b746b1?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>作为单身狗的我只能告白最爱的周杰伦了 <a href="https://sushengbuhuo.github.io/jay.html" target="_blank" rel="noopener">https://sushengbuhuo.github.io/jay.html</a> 这个页面采用 impress.js 制作，按键翻页，如同在线的 PPT。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-0d95a5d66fafd8c1?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>论告白，印象最深的一段还是来自一部凸显父爱及人性光辉的电影《美丽人生》</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-1c7ece5785f0d2a0?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-2d15b13cd89ec5c2?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>每篇文章推荐一个工具：网址导航<a href="https://zzii.net/" target="_blank" rel="noopener">https://zzii.net/</a> <a href="https://123.haoip.cn/" target="_blank" rel="noopener">https://123.haoip.cn/</a> <a href="http://1e.sg/" target="_blank" rel="noopener">http://1e.sg/</a> <a href="http://shouku123.com/" target="_blank" rel="noopener">http://shouku123.com/</a> <a href="http://chuangzaoshi.com/" target="_blank" rel="noopener">http://chuangzaoshi.com/</a> <a href="http://byr.wiki/" target="_blank" rel="noopener">http://byr.wiki/</a>  <a href="http://youquhome.com/" target="_blank" rel="noopener">http://youquhome.com/</a>   <a href="http://oeasy.org/" target="_blank" rel="noopener">http://oeasy.org/</a></p>

          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope="" itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2019/08/26/微博认证成功了/">

    <span hidden itemprop="author" itemscope="" itemtype="http://schema.org/Person">
      <meta itemprop="name" content="苏生不惑">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope="" itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="苏生不惑的博客">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/2019/08/26/微博认证成功了/" itemprop="url">微博认证成功了</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-08-26T20:13:44+08:00">
                2019-08-26
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          
            <div class="post-wordcount">
              
                
                  <span class="post-meta-divider">|</span>
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  416 字
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  1 分钟
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>这是一篇旧文。</p>
<p>端午节放假 3 天，可以好好睡一觉了。</p>
<p>2012 年开始玩微博，至今 5 年了 ，5 年来几乎每天更新微博，这应该是我坚持最久的一件事。上周申请了微博认证，很快就通过了，哥也是有身份的人了，虽然并没有什么卵用。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-0f3a2ad5f3efcc45?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-610ae6ae8910f8e6?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>5 年的微博见证着我在北京的种种。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-337edda1dbed5019?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>转发过很多鸡汤</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-d8e6ad66fbb23005?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>历经”世界末日“</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-36e6500ed7f41a1d?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-a40e425b9eb4555f?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-38c3a152ef891487?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-aa639b6903322af3?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-5e8b6aef09a61b44?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-5fc375abc940a007?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>看过的电影</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-50dd932d7fa59d68?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>听过的歌</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-81bf007f4f3850a2?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>下面就推荐 10 个有意思的微博博主吧</p>
<p>0.@办公室小野 见识脑洞大开的吃货 </p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-7422bafa0b6159b0?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>1.@野食小哥 没胃口的时候看看他怎么吃的</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-facf47acfa08a587?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>2.@一生唐伯虎 致敬星爷</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-ad6e5e82a327b1b4?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>3.@linux命令行精选网 各种有用的命令行</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-e499cea66dac2b94?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>4.@网易云热评君 听歌看评论只服网易云音乐</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-a4279c73140eeb4e?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>5.@郊县天王老田 漫画式秀恩爱</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-2a76dead2e5d407f?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>6.@w巫木木 了解周杰伦最新动态</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-98e8326cdb101eae?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>7.@资源掌柜 没有你找不到的资源</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-5f01ee0b0cdb522c?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>8.@papi酱 吐槽能手奇女子</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-1bd2dd6dcd61cd62?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>9.@网路冷眼  了解最新技术动态</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-6933e16472ceabfa?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>以上是我关注中的 10 个比较有意思的微博博主，如果你也有关注的其他有意思的博主可以推荐给我，感谢，祝端午节快乐。</p>
<p>最近余额宝年收益破万 4 了，目前放了 8 万左右，可惜个人上限为 25 万，这是我唯一的理财方式了，今后可能需要其他的理财产品。不知道还有什么更高安全收益的理财产品推荐，可以给我留言交流。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-4e2f6ce0736fbe6a?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>

          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope="" itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2019/08/26/网易云音乐那些扎心评论/">

    <span hidden itemprop="author" itemscope="" itemtype="http://schema.org/Person">
      <meta itemprop="name" content="苏生不惑">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope="" itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="苏生不惑的博客">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/2019/08/26/网易云音乐那些扎心评论/" itemprop="url">网易云音乐那些扎心评论</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-08-26T20:12:03+08:00">
                2019-08-26
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          
            <div class="post-wordcount">
              
                
                  <span class="post-meta-divider">|</span>
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  2.2k 字
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  7 分钟
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>这是一篇旧文。</p>
<p>所谓“一入网易深似海，从此其他音乐 APP 是路人”，在网易云音乐不仅仅是听歌，看评论也是一种乐趣，今天就推荐那些网易云音乐扎心评论，有些还被留在杭州地铁上，好想去杭州坐地铁感受下。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-c97cb666130271fd?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-919682f06775c661?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-463dd994e22e4655?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-18ffa0fa3b5fbca9?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-776fbe68dcc1264f?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>截止目前网易云音乐评论最高的歌曲来自杰伦的那首灵魂歌曲《晴天》，评论数已突破 147 万，而且每天在新增，有网友整理了个评论过 5 万的歌单 <a href="http://music.163.com/#/playlist?id=455717860" target="_blank" rel="noopener">http://music.163.com/#/playlist?id=455717860</a> ，赶紧收藏起来吧。</p>
<h3 id="周杰伦《晴天》-http-music-163-com-song-id-186016"><a href="#周杰伦《晴天》-http-music-163-com-song-id-186016" class="headerlink" title="周杰伦《晴天》 http://music.163.com/#/song?id=186016"></a>周杰伦《晴天》 <a href="http://music.163.com/#/song?id=186016" target="_blank" rel="noopener">http://music.163.com/#/song?id=186016</a></h3><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line"><span class="number">1.</span>  <span class="string">`现在想来  我们这波第一批老去的90后还是挺幸运的`</span> </span><br><span class="line"></span><br><span class="line"><span class="number">2.</span>  <span class="string">`在我们最好的年龄遇到了最好的华语乐坛（周杰伦巅峰  林俊杰 SHE 潘玮柏  蔡依林…）`</span></span><br><span class="line"></span><br><span class="line"><span class="number">3.</span>  <span class="string">`遇到了巅峰的星爷  遇到了最好的西科东艾北卡南麦  动画城陪我们成长`</span> </span><br><span class="line"></span><br><span class="line"><span class="number">4.</span>  <span class="string">`周杰伦陪我们成熟  我们看着星爷老去  见证科比退役`</span> </span><br><span class="line"></span><br><span class="line"><span class="number">5.</span>  <span class="string">`或许我们不是最好的一代  但一定是最精彩的一代`</span></span><br></pre></td></tr></table></figure>
<h3 id="信乐团《离歌》-http-music-163-com-song-id-387592"><a href="#信乐团《离歌》-http-music-163-com-song-id-387592" class="headerlink" title="信乐团《离歌》 http://music.163.com/#/song?id=387592"></a>信乐团《离歌》 <a href="http://music.163.com/#/song?id=387592" target="_blank" rel="noopener">http://music.163.com/#/song?id=387592</a></h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">1.  `第一个喜欢的姑娘在ktv跟她男票接的初吻，在我面前。那是我这辈子唯一一次把这首歌唱上去。`</span><br></pre></td></tr></table></figure>
<h3 id="王菲《匆匆那年》http-music-163-com-song-id-29713754"><a href="#王菲《匆匆那年》http-music-163-com-song-id-29713754" class="headerlink" title="王菲《匆匆那年》http://music.163.com/#/song?id=29713754"></a>王菲《匆匆那年》<a href="http://music.163.com/#/song?id=29713754" target="_blank" rel="noopener">http://music.163.com/#/song?id=29713754</a></h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">1.  `我已经变成了厚脸皮随意听荤段子的女生，可是想起你的时候，还是想穿一次白裙子给你看。`</span><br></pre></td></tr></table></figure>
<h3 id="陈奕迅《好友不见》-http-music-163-com-song-id-65538"><a href="#陈奕迅《好友不见》-http-music-163-com-song-id-65538" class="headerlink" title="陈奕迅《好友不见》 http://music.163.com/#/song?id=65538"></a>陈奕迅《好友不见》 <a href="http://music.163.com/#/song?id=65538" target="_blank" rel="noopener">http://music.163.com/#/song?id=65538</a></h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">1.  `这是我今年参加的第三次相亲。一坐下来妈妈便开始讲起对面那女孩的种种优点来，`</span><br><span class="line"></span><br><span class="line">2.  `中心思想就是我必须娶她回家当老婆。我妈妈讲完，对方的妈妈又开始向她女儿夸起我来.`</span><br><span class="line"></span><br><span class="line">3.  `半个钟头过后两位妈妈才互相打了一个眼色离开餐桌把我们两人单独留下.`</span><br><span class="line"></span><br><span class="line">4.  `我和她静静对视了一分钟,“好久不见。”她先开口道`</span><br></pre></td></tr></table></figure>
<h3 id="鹿先森乐队《春风十里》http-music-163-com-song-id-38576323"><a href="#鹿先森乐队《春风十里》http-music-163-com-song-id-38576323" class="headerlink" title="鹿先森乐队《春风十里》http://music.163.com/#/song?id=38576323"></a>鹿先森乐队《春风十里》<a href="http://music.163.com/#/song?id=38576323" target="_blank" rel="noopener">http://music.163.com/#/song?id=38576323</a></h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">1.  `春风十里  五十里  一百里  体测八百米  海底两万里  德芙巧克力  香草味八喜  可可布朗尼` </span><br><span class="line"></span><br><span class="line">2.  `榴莲菠萝蜜  芝士玉米粒  鸡汁土豆泥  黑椒牛里脊  黄焖辣子鸡  红烧排骨酱醋鱼  不如你  全都不如你`</span><br></pre></td></tr></table></figure>
<h3 id="陈绮贞《我喜欢上你的时内心活动》http-music-163-com-song-id-471403427"><a href="#陈绮贞《我喜欢上你的时内心活动》http-music-163-com-song-id-471403427" class="headerlink" title="陈绮贞《我喜欢上你的时内心活动》http://music.163.com/#/song?id=471403427"></a>陈绮贞《我喜欢上你的时内心活动》<a href="http://music.163.com/#/song?id=471403427" target="_blank" rel="noopener">http://music.163.com/#/song?id=471403427</a></h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">1.  `跟我走吧  忐忑给你  情书给你  不眠的夜给你  四月的清晨给你  雪糕的第一口给你` </span><br><span class="line"></span><br><span class="line">2.  `海底捞最后一颗鱼丸给你  手给你  怀抱给你  车票给你  跋涉给你  等待给你` </span><br><span class="line"></span><br><span class="line">3.  `钥匙给你  家给你  一腔孤勇和余生六十年  全都给你`</span><br></pre></td></tr></table></figure>
<h3 id="刘若英-《一辈子孤单》http-music-163-com-song-id-25949863"><a href="#刘若英-《一辈子孤单》http-music-163-com-song-id-25949863" class="headerlink" title="刘若英 《一辈子孤单》http://music.163.com/#/song?id=25949863"></a>刘若英 《一辈子孤单》<a href="http://music.163.com/#/song?id=25949863" target="_blank" rel="noopener">http://music.163.com/#/song?id=25949863</a></h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">1.  `刘若英在演唱会上问粉丝我真的会一直孤单嘛？结果奶茶现在孩子都有了。我想问我的幸福在哪？`</span><br></pre></td></tr></table></figure>
<h3 id="好妹妹乐队《你曾是少年》http-music-163-com-song-id-26427663"><a href="#好妹妹乐队《你曾是少年》http-music-163-com-song-id-26427663" class="headerlink" title="好妹妹乐队《你曾是少年》http://music.163.com/#/song?id=26427663"></a>好妹妹乐队《你曾是少年》<a href="http://music.163.com/#/song?id=26427663" target="_blank" rel="noopener">http://music.163.com/#/song?id=26427663</a></h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">1.  `某天，你无端想起一个人，她曾让你对明天有所期许，但是却完全没有出现在你的明天里。`</span><br><span class="line"></span><br><span class="line">2.  `我曾是个少年，但时光悄无声息的流逝，就像今天不知不觉的飘了几片雪花而我却什么也不知。`</span><br></pre></td></tr></table></figure>
<h3 id="薛之谦《你还要我怎样》http-music-163-com-song-id-27955653"><a href="#薛之谦《你还要我怎样》http-music-163-com-song-id-27955653" class="headerlink" title="薛之谦《你还要我怎样》http://music.163.com/#/song?id=27955653"></a>薛之谦《你还要我怎样》<a href="http://music.163.com/#/song?id=27955653" target="_blank" rel="noopener">http://music.163.com/#/song?id=27955653</a></h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">1.  `听了很多遍也没有经心，下的时候也是因为一些啼笑皆非的理由，`</span><br><span class="line"></span><br><span class="line">2.  `只是昨天在自习室背书的时候觉得旋律很合适，就单曲循环了起来，`</span><br><span class="line"></span><br><span class="line">3.  `直到听到那一句【有一天晚上  梦一场  你白发苍苍  说带我流浪  我还是没犹豫  就随你去天堂  】`</span><br><span class="line"></span><br><span class="line">4.  `一个激灵抓起手机仔仔细细的看歌词，趴在没有人的自习室痛哭出声。`</span><br></pre></td></tr></table></figure>
<h3 id="莫文蔚《他不爱我》http-music-163-com-song-id-276995"><a href="#莫文蔚《他不爱我》http-music-163-com-song-id-276995" class="headerlink" title="莫文蔚《他不爱我》http://music.163.com/#/song?id=276995"></a>莫文蔚《他不爱我》<a href="http://music.163.com/#/song?id=276995" target="_blank" rel="noopener">http://music.163.com/#/song?id=276995</a></h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">1.  `小时候刮奖刮出“谢”字还不扔，非要把“谢谢惠顾”都刮的干干净净才舍得放手，和后来太多的事一模一样。`</span><br></pre></td></tr></table></figure>
<h3 id="谢安琪《钟无艳》http-music-163-com-song-id-308353"><a href="#谢安琪《钟无艳》http-music-163-com-song-id-308353" class="headerlink" title="谢安琪《钟无艳》http://music.163.com/#/song?id=308353"></a>谢安琪《钟无艳》<a href="http://music.163.com/#/song?id=308353" target="_blank" rel="noopener">http://music.163.com/#/song?id=308353</a></h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">1.  `无人问我粥可温  无人与我立黄昏`</span><br></pre></td></tr></table></figure>
<h3 id="杨千嬅《再见二丁目》http-music-163-com-song-id-316938"><a href="#杨千嬅《再见二丁目》http-music-163-com-song-id-316938" class="headerlink" title="杨千嬅《再见二丁目》http://music.163.com/#/song?id=316938"></a>杨千嬅《再见二丁目》<a href="http://music.163.com/#/song?id=316938" target="_blank" rel="noopener">http://music.163.com/#/song?id=316938</a></h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">1.  `林夕把最好的词给了杨千嬅，把情感的凝练给了王菲，把对生活情感的领悟哲理给了陈奕迅`</span><br></pre></td></tr></table></figure>
<h3 id="庄心妍《以后的以后》http-music-163-com-song-id-27676089"><a href="#庄心妍《以后的以后》http-music-163-com-song-id-27676089" class="headerlink" title="庄心妍《以后的以后》http://music.163.com/#/song?id=27676089"></a>庄心妍《以后的以后》<a href="http://music.163.com/#/song?id=27676089" target="_blank" rel="noopener">http://music.163.com/#/song?id=27676089</a></h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">1.  `你结婚的时候也请寄一张请帖给我吧，我见过你所有的样子，还想看看你最后不属于我的样子`</span><br></pre></td></tr></table></figure>
<h3 id="张悬《喜欢》http-music-163-com-song-id-326719"><a href="#张悬《喜欢》http-music-163-com-song-id-326719" class="headerlink" title="张悬《喜欢》http://music.163.com/#/song?id=326719"></a>张悬《喜欢》<a href="http://music.163.com/#/song?id=326719" target="_blank" rel="noopener">http://music.163.com/#/song?id=326719</a></h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">1.  `喜欢就去表白，大不了连朋友都做不成，做朋友又有什么用，我又不缺朋友，我缺你。`</span><br></pre></td></tr></table></figure>
<h3 id="金玟岐《岁月神偷》"><a href="#金玟岐《岁月神偷》" class="headerlink" title="金玟岐《岁月神偷》"></a>金玟岐《岁月神偷》</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">1.  `为了找到她的网易云账号我一个一个她可能会用的id都搜过  终于让我找到了` </span><br><span class="line"></span><br><span class="line">2.  `从里面找了她经常听的一首歌  不知道她会不会看评论  我想就算她喜欢看评论` </span><br><span class="line"></span><br><span class="line">3.  `也看不到我这条了吧。`</span><br></pre></td></tr></table></figure>
<h3 id="Misha-Mishenko《Vakning-að-elska》http-music-163-com-song-id-26224540"><a href="#Misha-Mishenko《Vakning-að-elska》http-music-163-com-song-id-26224540" class="headerlink" title="Misha Mishenko《Vakning að elska》http://music.163.com/#/song?id=26224540"></a>Misha Mishenko《Vakning að elska》<a href="http://music.163.com/#/song?id=26224540" target="_blank" rel="noopener">http://music.163.com/#/song?id=26224540</a></h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">1.  `无人与我立黄昏，无人问我粥可温，无人与我捻熄灯，无人共我书半生，无人陪我夜已深，`</span><br><span class="line"></span><br><span class="line">2.  `无人与我把酒分，无人拭我相思泪，无人梦我与前尘，无人陪我顾星辰，无人醒我茶已冷，`</span><br><span class="line"></span><br><span class="line">3.  `无人听我述衷肠，无人解我心头梦，无人拘我言中泪，无人愁我独行路，回首向来萧瑟处，`</span><br><span class="line"></span><br><span class="line">4.  `无人等在灯火阑珊处。` </span><br><span class="line"></span><br><span class="line">7.  `残阳与我立黄昏，阿婆问我粥可温。飞蛾与我捻熄灯，笔砚共我书半生。孤月陪我夜已深，`</span><br><span class="line"></span><br><span class="line">8.  `往事与我把酒分。春风拭我相思泪，睡梦与我恋前尘。微风陪我顾星辰，案几知我茶已冷。`</span><br><span class="line"></span><br><span class="line">9.  `归燕听我诉衷肠，暗香解我心头梦。素衣拘我言中泪，竹杖伴我独行路。回首向来萧瑟处，`</span><br><span class="line"></span><br><span class="line">10.  `那人却在灯火阑珊处。`</span><br></pre></td></tr></table></figure>
<h3 id="林忆莲《词不达意》http-music-163-com-song-id-255858"><a href="#林忆莲《词不达意》http-music-163-com-song-id-255858" class="headerlink" title="林忆莲《词不达意》http://music.163.com/#/song?id=255858"></a>林忆莲《词不达意》<a href="http://music.163.com/#/song?id=255858" target="_blank" rel="noopener">http://music.163.com/#/song?id=255858</a></h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">1.  `每次看这里的评论，总感觉像是在看一段街头采访视频，每个人都匆匆忙忙，`</span><br><span class="line"></span><br><span class="line">2.  `只是在镜头前留下自己的两三句话，但总让我仿佛看到了他们的青春，遗憾，喜乐，成长。`</span><br><span class="line"></span><br><span class="line">3.  `步履不停的人也总想找个与世隔绝的角落悄悄地吐露心声，静静地缅怀追忆，睁开眼我们又是赶路人。`</span><br></pre></td></tr></table></figure>
<h3 id="程璧《我想和你虚度时光》http-music-163-com-song-id-30706318"><a href="#程璧《我想和你虚度时光》http-music-163-com-song-id-30706318" class="headerlink" title="程璧《我想和你虚度时光》http://music.163.com/#/song?id=30706318"></a>程璧《我想和你虚度时光》<a href="http://music.163.com/#/song?id=30706318" target="_blank" rel="noopener">http://music.163.com/#/song?id=30706318</a></h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">1.  `我们从此不刷牙洗脸，不走亲访友，不交养老保险，我们在海边有座房子，室徒四壁，一个床垫子，`</span><br><span class="line"></span><br><span class="line">2.  `几瓶福佳白啤，几本黄色小说，在烛光下，在海浪里，光腚跳舞，弹琴做爱，虚度时光，直到死去。`</span><br></pre></td></tr></table></figure>
<h3 id="周传雄《黄昏》http-music-163-com-song-id-190072"><a href="#周传雄《黄昏》http-music-163-com-song-id-190072" class="headerlink" title="周传雄《黄昏》http://music.163.com/#/song?id=190072"></a>周传雄《黄昏》<a href="http://music.163.com/#/song?id=190072" target="_blank" rel="noopener">http://music.163.com/#/song?id=190072</a></h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">1.  `对这首歌一直有特别的感觉。那时候大街小巷都在循环播放它，幼身的自己正在从所在的城市，`</span><br><span class="line"></span><br><span class="line">2.  `穿越到另一个城市的海边，阴沉的海风，涌动的波涛，黑色的沙滩，记忆的童年，`</span><br><span class="line"></span><br><span class="line">3.  `那时候哪里有什么情伤，不知道为什么，也会觉得，整个城市里的人好像都在抽泣。`</span><br></pre></td></tr></table></figure>
<h3 id="陈奕迅《陪你度过漫长岁月》http-music-163-com-song-id-35403523"><a href="#陈奕迅《陪你度过漫长岁月》http-music-163-com-song-id-35403523" class="headerlink" title="陈奕迅《陪你度过漫长岁月》http://music.163.com/#/song?id=35403523"></a>陈奕迅《陪你度过漫长岁月》<a href="http://music.163.com/#/song?id=35403523" target="_blank" rel="noopener">http://music.163.com/#/song?id=35403523</a></h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">1.  `认识九年多，我在武汉，她在深圳，我们隔着1000多公里的两座城市。`</span><br><span class="line"></span><br><span class="line">2.  `因为直飞深圳太贵，选择了飞广州，再搭高铁去深圳。打了出粗车，坐了机场大巴，换乘了一路的地铁，`</span><br><span class="line"></span><br><span class="line">3.  `终于在下午五点半到了她公司楼下，看到她发现我突然出现在她公司楼下的表情。好像一切都值了。`</span><br><span class="line"></span><br><span class="line">4.  `我们应该会结婚吧，陪着你渡过漫长岁月。`</span><br></pre></td></tr></table></figure>
<h3 id="ps：最近转发微博又中奖了（我为什么说又呢），是一件极客T恤"><a href="#ps：最近转发微博又中奖了（我为什么说又呢），是一件极客T恤" class="headerlink" title="ps：最近转发微博又中奖了（我为什么说又呢），是一件极客T恤"></a>ps：最近转发微博又中奖了（我为什么说又呢），是一件极客T恤</h3><p><img src="https://upload-images.jianshu.io/upload_images/17817191-ff3034100fd2f959?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>pps: 今天我爸又打电话催我：什么这么大的人还不结婚，还让不让我们好好过了，老家的地都快征完了，每个人能分十多万，我们家就 3 个人，难道我不想结婚，我也很绝望啊。。。</p>
<p>每篇文章推荐一个工具：将你的微博，微信朋友圈出版成书，微信书<a href="https://weixinshu.com/" target="_blank" rel="noopener">https://weixinshu.com/</a> 出书啦 <a href="http://www.chushu.la/" target="_blank" rel="noopener">http://www.chushu.la/</a> 她们都有微博和公众号，关注即可。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-81f6e4416d141d67?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>The End</p>

          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope="" itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2019/08/26/微博备份/">

    <span hidden itemprop="author" itemscope="" itemtype="http://schema.org/Person">
      <meta itemprop="name" content="苏生不惑">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope="" itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="苏生不惑的博客">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/2019/08/26/微博备份/" itemprop="url">微博备份</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-08-26T20:09:02+08:00">
                2019-08-26
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          
            <div class="post-wordcount">
              
                
                  <span class="post-meta-divider">|</span>
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  988 字
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  4 分钟
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>这是一篇旧文。<br>玩微博 5 年了，至今发布微博 66747 条，前几天微博突然挂了，而且最近微博管控越来越严格了，为了安全把我的 5 年微博备份下，使用的工具是一个 chrome 插件 </p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-31d86e4d0f89789b?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-840803c8c8522b55?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>具体使用教程见这条微博 <a href="http://weibo.com/1869328492/F9cR9okDK?type=comment#_rnd1498388083394" target="_blank" rel="noopener">http://weibo.com/1869328492/F9cR9okDK?type=comment#_rnd1498388083394</a> 扩展见微盘 <a href="http://vdisk.weibo.com/s/x5GuwUhlGH/1498206615" target="_blank" rel="noopener">http://vdisk.weibo.com/s/x5GuwUhlGH/1498206615</a> 由于 chrome 扩展安装需要翻(fan)墙(qiang)，所以作者提供的是 crx 文件，下载后拖到扩展里就可以安装 感谢作者@Easy</p>
<p>一、下载后，拖入chrome扩展页安装。</p>
<p>二、点击工具图标进入操作页面，微信扫码登录。这时注意一下，先打开weibo.com登录你的微博。这里登录后，下面一步weibo.cn时会自动登录，因为weibo.cn的登录很麻烦，所以这里要先登录。</p>
<p>三、会看到【点我测试我的微博网络】，点它，打开weibo.cn。返回工具页面，点【登录后点此继续】。这里要注意一下，在打开的weibo.cn页面，下拉到最底下，看到条数，点开，设置20。点预览，后点保存设置。返回工具页面，再点【全量备份】。微博越多速度越慢。如果你发现数字不动了，点一下图标，即可开新页，会看到可以继续，</p>
<p>四、完成后，会自动进入预览效果页面。会有一个下载按钮。点下载即可。</p>
<p>五、会得到一个压缩包，解压后，就是N个html文件，这就是把你的微博备份了。</p>
<p>下载后的文件打开若有乱码，则更新浏览器。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-fb46a68d5b039e27?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"> </p>
<p>从早上 9 点就开始备份了，然后我的微博数实在太大了， 共 66741 条 6675 页微博需要备份，预计需要 166 分钟，作者都惊呆了，鬼知道我都发了些什么微博。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-67b9033855e22bc5?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-f190ca7fbf413be2?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-e2cff78bafc765b9?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-16ba9fed891acfa7?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-e2815558f34efd09?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>最后还是微信上@easy 直接帮我导出了，感谢。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-91f9adbd635099ae?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>作者还给懂PHP的同学提供两个微贝的增强脚本，解压后放到那堆html 同级目录，运行 php json.php 会把feed数据提取到json目录，运行 php img.php 可以把页面中的图片备份到本地并替换链接。<a href="http://vdisk.weibo.com/s/x5GuwUhQQ_/1498322627" target="_blank" rel="noopener">http://vdisk.weibo.com/s/x5GuwUhQQ_/1498322627</a><br><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br><span class="line">191</span><br><span class="line">192</span><br><span class="line">193</span><br><span class="line">194</span><br><span class="line">195</span><br><span class="line">196</span><br><span class="line">197</span><br><span class="line">198</span><br><span class="line">199</span><br><span class="line">200</span><br><span class="line">201</span><br><span class="line">202</span><br><span class="line">203</span><br><span class="line">204</span><br><span class="line">205</span><br><span class="line">206</span><br><span class="line">207</span><br><span class="line">208</span><br><span class="line">209</span><br><span class="line">210</span><br><span class="line">211</span><br><span class="line">212</span><br><span class="line">213</span><br><span class="line">214</span><br><span class="line">215</span><br><span class="line">216</span><br><span class="line">217</span><br><span class="line">218</span><br><span class="line">219</span><br></pre></td><td class="code"><pre><span class="line">$ cat json.php</span><br><span class="line"></span><br><span class="line">&lt;?php</span><br><span class="line"></span><br><span class="line">foreach( glob(  <span class="string">'*.html'</span> ) <span class="keyword">as</span> $k =&gt; $htmlfile )</span><br><span class="line"></span><br><span class="line">&#123;</span><br><span class="line"></span><br><span class="line">        echo <span class="string">"File $htmlfile ..."</span>;</span><br><span class="line"></span><br><span class="line">        $reg = <span class="string">'/this\.feeds\s+=\s+(.+?)\&#125;\s+,\s+1000/is'</span>;</span><br><span class="line"></span><br><span class="line">        $content = file_get_contents( $htmlfile );</span><br><span class="line"></span><br><span class="line">        <span class="keyword">if</span>( preg_match( $reg , $content , $out ) )</span><br><span class="line"></span><br><span class="line">        &#123;</span><br><span class="line"></span><br><span class="line">                <span class="keyword">if</span>($data = json_decode( trim($out[<span class="number">1</span>]) , <span class="number">1</span> ))</span><br><span class="line"></span><br><span class="line">                &#123;</span><br><span class="line"></span><br><span class="line">                        @mkdir( <span class="string">'json/'</span>, <span class="number">0777</span> , <span class="literal">true</span>  );</span><br><span class="line"></span><br><span class="line">                        $jsonfile = <span class="string">'json/'</span>  . basename( $htmlfile ) . <span class="string">'.json'</span>;</span><br><span class="line"></span><br><span class="line">                        file_put_contents( $jsonfile , trim($out[<span class="number">1</span>]) );</span><br><span class="line"></span><br><span class="line">                        echo <span class="string">"done.\r\n"</span>;</span><br><span class="line"></span><br><span class="line">                &#125;</span><br><span class="line"></span><br><span class="line">                <span class="keyword">else</span></span><br><span class="line"></span><br><span class="line">                        echo <span class="string">"error.\r\n"</span>;</span><br><span class="line"></span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line">echo <span class="string">"ALL Done."</span>;</span><br><span class="line"></span><br><span class="line">$ cat img.php</span><br><span class="line"></span><br><span class="line">&lt;?php</span><br><span class="line"></span><br><span class="line">foreach( glob(  <span class="string">'*.html'</span> ) <span class="keyword">as</span> $k =&gt; $htmlfile )</span><br><span class="line"></span><br><span class="line">&#123;</span><br><span class="line"></span><br><span class="line">        echo <span class="string">"File: $htmlfile \r\n"</span>;</span><br><span class="line"></span><br><span class="line">        $reg = <span class="string">'/this\.feeds\s+=\s+(.+?)\&#125;\s+,\s+1000/is'</span>;</span><br><span class="line"></span><br><span class="line">        $content = file_get_contents( $htmlfile );</span><br><span class="line"></span><br><span class="line">        <span class="keyword">if</span>( preg_match( $reg , $content , $out ) )</span><br><span class="line"></span><br><span class="line">        &#123;</span><br><span class="line"></span><br><span class="line">                <span class="keyword">if</span>($data = json_decode( trim($out[<span class="number">1</span>]) , <span class="number">1</span> ))</span><br><span class="line"></span><br><span class="line">                &#123;</span><br><span class="line"></span><br><span class="line">                        foreach ( $data <span class="keyword">as</span> $kkk =&gt; $item )</span><br><span class="line"></span><br><span class="line">                        &#123;</span><br><span class="line"></span><br><span class="line">                                $keys = array();</span><br><span class="line"></span><br><span class="line">                                $keys[] = <span class="string">'pic_url'</span>;</span><br><span class="line"></span><br><span class="line">                                <span class="comment">//$keys[] = 'oripic_url';</span></span><br><span class="line"></span><br><span class="line">                                $keys[] = <span class="string">'rt_pic_url'</span>;</span><br><span class="line"></span><br><span class="line">                                <span class="comment">//$keys[] = 'rt_oripic_url';</span></span><br><span class="line"></span><br><span class="line">                                foreach( $keys <span class="keyword">as</span> $key )</span><br><span class="line"></span><br><span class="line">                                &#123;</span><br><span class="line"></span><br><span class="line">                                        <span class="keyword">if</span>( strlen( $item[$key] ) &gt; <span class="number">0</span> &amp;&amp; (substr</span><br><span class="line"></span><br><span class="line">( $item[$key] , <span class="number">0</span> , <span class="number">7</span> ) == <span class="string">'http://'</span> || substr( $item[$key] , <span class="number">0</span> , <span class="number">8</span> ) == <span class="string">'https:</span></span><br><span class="line"><span class="string"></span></span><br><span class="line"><span class="string">//'</span> ) )</span><br><span class="line"></span><br><span class="line">                                        &#123;</span><br><span class="line"></span><br><span class="line">                                                $info = explode( <span class="string">'.'</span> , basename(</span><br><span class="line"></span><br><span class="line"> $item[$key] ));</span><br><span class="line"></span><br><span class="line">                                                $ext = end( $info );</span><br><span class="line"></span><br><span class="line">                                                <span class="keyword">if</span>( !in_array(  $ext , array( <span class="string">'p</span></span><br><span class="line"><span class="string"></span></span><br><span class="line"><span class="string">ng'</span> , <span class="string">'jpg'</span> , <span class="string">'jpeg'</span> , <span class="string">'gif'</span> ) ) )</span><br><span class="line"></span><br><span class="line">                                                &#123;</span><br><span class="line"></span><br><span class="line">                                                        $ext = <span class="string">'jpg'</span>;</span><br><span class="line"></span><br><span class="line">                                                &#125;</span><br><span class="line"></span><br><span class="line">                                                @mkdir( <span class="string">'img/'</span> . $k . <span class="string">'/'</span> , <span class="number">0777</span></span><br><span class="line"></span><br><span class="line"> , <span class="literal">true</span>  );</span><br><span class="line"></span><br><span class="line">                                                $newfile = <span class="string">'img/'</span> . $k . <span class="string">'/'</span> . $</span><br><span class="line"></span><br><span class="line">item[<span class="string">'cid'</span>] . <span class="string">'.'</span>.$key.<span class="string">'.'</span> .$ext;</span><br><span class="line"></span><br><span class="line">                                                echo <span class="string">"Image: "</span> . $item[$key] . <span class="string">"</span></span><br><span class="line"><span class="string"></span></span><br><span class="line"><span class="string">\r\n"</span> ;</span><br><span class="line"></span><br><span class="line">                                                <span class="keyword">if</span>( copy( $item[$key] , $newfile</span><br><span class="line"></span><br><span class="line"> ) )</span><br><span class="line"></span><br><span class="line">                                                &#123;</span><br><span class="line"></span><br><span class="line">                                                        $data[$kkk][$key] = $<span class="keyword">new</span></span><br><span class="line"></span><br><span class="line">file;</span><br><span class="line"></span><br><span class="line">                                                        <span class="comment">// 处理原图</span></span><br><span class="line"></span><br><span class="line">                                                        <span class="keyword">if</span>( $key == <span class="string">'rt_pic_url'</span></span><br><span class="line"></span><br><span class="line"> )</span><br><span class="line"></span><br><span class="line">                                                        &#123;</span><br><span class="line"></span><br><span class="line">                                                                $new_ofile = <span class="string">'im</span></span><br><span class="line"><span class="string"></span></span><br><span class="line"><span class="string">g/'</span> . $k . <span class="string">'/'</span> . $item[<span class="string">'cid'</span>] . <span class="string">'.'</span>.$key.<span class="string">'.rtori.'</span> .$ext;</span><br><span class="line"></span><br><span class="line">                                                                $nurl = str_repl</span><br><span class="line"></span><br><span class="line">ace( <span class="string">'/wap180/'</span> , <span class="string">'/large/'</span>,  $item[$key] );</span><br><span class="line"></span><br><span class="line">                                                                echo <span class="string">"Image: "</span> .</span><br><span class="line"></span><br><span class="line"> $nurl . <span class="string">"\r\n"</span> ;</span><br><span class="line"></span><br><span class="line">                                                                <span class="keyword">if</span>( copy( $nurl</span><br><span class="line"></span><br><span class="line">, $new_ofile ) )</span><br><span class="line"></span><br><span class="line">                                                                        $data[$k</span><br><span class="line"></span><br><span class="line">kk][<span class="string">'rt_oripic_url'</span>] = $new_ofile;</span><br><span class="line"></span><br><span class="line">                                                        &#125;</span><br><span class="line"></span><br><span class="line">                                                        <span class="comment">// 处理原图</span></span><br><span class="line"></span><br><span class="line">                                                        <span class="keyword">if</span>( $key == <span class="string">'pic_url'</span> )</span><br><span class="line"></span><br><span class="line">                                                        &#123;</span><br><span class="line"></span><br><span class="line">                                                                $new_ofile = <span class="string">'im</span></span><br><span class="line"><span class="string"></span></span><br><span class="line"><span class="string">g/'</span> . $k . <span class="string">'/'</span> . $item[<span class="string">'cid'</span>] . <span class="string">'.'</span>.$key.<span class="string">'.ori.'</span> .$ext;</span><br><span class="line"></span><br><span class="line">                                                                $nurl = str_repl</span><br><span class="line"></span><br><span class="line">ace( <span class="string">'/wap180/'</span> , <span class="string">'/large/'</span>,  $item[$key] );</span><br><span class="line"></span><br><span class="line">                                                                echo <span class="string">"Image: "</span> .</span><br><span class="line"></span><br><span class="line"> $nurl . <span class="string">"\r\n"</span> ;</span><br><span class="line"></span><br><span class="line">                                                                <span class="keyword">if</span>( copy( $nurl</span><br><span class="line"></span><br><span class="line">, $new_ofile ) )</span><br><span class="line"></span><br><span class="line">                                                                        $data[$k</span><br><span class="line"></span><br><span class="line">kk][<span class="string">'oripic_url'</span>] = $new_ofile;</span><br><span class="line"></span><br><span class="line">                                                        &#125;</span><br><span class="line"></span><br><span class="line">                                                        echo <span class="string">"...done\r\n"</span>;</span><br><span class="line"></span><br><span class="line">                                                &#125;</span><br><span class="line"></span><br><span class="line">                                                <span class="keyword">else</span></span><br><span class="line"></span><br><span class="line">                                                &#123;</span><br><span class="line"></span><br><span class="line">                                                        echo <span class="string">"...error \r\n"</span>;</span><br><span class="line"></span><br><span class="line">                                                &#125;</span><br><span class="line"></span><br><span class="line">                                                echo <span class="string">"@Page $k \r\n"</span>;</span><br><span class="line"></span><br><span class="line">                                        &#125;</span><br><span class="line"></span><br><span class="line">                                &#125;</span><br><span class="line"></span><br><span class="line">                        &#125;</span><br><span class="line"></span><br><span class="line">                        $content = str_replace( $out[<span class="number">1</span>] , json_encode( $data ) ,</span><br><span class="line"></span><br><span class="line"> $content );</span><br><span class="line"></span><br><span class="line">                        file_put_contents( $htmlfile , $content );</span><br><span class="line"></span><br><span class="line">                &#125;</span><br><span class="line"></span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line">echo <span class="string">"All Done!"</span>;</span><br></pre></td></tr></table></figure></p>
<p>最后导出目录下 92 MB，130 个 HTML 文件</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-8710b4265070a3af?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-5fccdc9d65f53a2c?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>最后推荐几个好用的 chrome 插件 <a href="https://chrome.google.com/webstore/category/extensions?hl=zh-CN" target="_blank" rel="noopener">https://chrome.google.com/webstore/category/extensions?hl=zh-CN</a></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-9540d2be9a11fd32?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-881095e91cb65fd7?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>不过安装 chrome 扩展，你懂的，在墙外，所以需要用软件，比如最常用的 ss,教程见 <a href="http://www.iyingsuo.com/help.html" target="_blank" rel="noopener">http://www.iyingsuo.com/help.html</a></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-380ba448a97e72c7?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>油猴脚本Violent monkey <a href="https://greasyfork.org/zh-CN" target="_blank" rel="noopener">https://greasyfork.org/zh-CN</a> 安装这个脚本后访问指定的网址就可以了。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-feff8a76a80f732c?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>

          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope="" itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2019/08/26/北京的雨/">

    <span hidden itemprop="author" itemscope="" itemtype="http://schema.org/Person">
      <meta itemprop="name" content="苏生不惑">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope="" itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="苏生不惑的博客">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/2019/08/26/北京的雨/" itemprop="url">北京的雨</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-08-26T20:06:34+08:00">
                2019-08-26
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          
            <div class="post-wordcount">
              
                
                  <span class="post-meta-divider">|</span>
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  1k 字
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  3 分钟
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>这是一篇旧文。<br>又一次成了落汤鸡，不记得第几次了。</p>
<p>今天早上出门的时候还天空一片晴朗，我戴着耳机，听网易云音乐里 许巍 唱着：</p>
<blockquote>
<p>我那总沉默的朋友</p>
<p>你让我感觉到力量</p>
<p>曾在我心中的伤口</p>
<p>如过眼的云烟</p>
<p>初次 感觉</p>
<p>心就像天空般晴朗</p>
<p>初次 感觉</p>
<p>心就像天空般晴朗</p>
<p>啦……啦……啦……</p>
</blockquote>
<p>本来今天没什么事，最近也没什么事，每天 10 点前到公司，打开电脑，输入密码，我的电脑平常都不关机的，主要每次开机要启动服务器，打开好几个浏览器，打开编辑器，PHPstorm，连 vpn ，命令行等等，好麻烦，所以就每周五下班关机一次。</p>
<p>上午基本没什么事干，刷刷微博，看看 QQ 群，聊聊微信群，看看公众号，基本快到 11 点半了，出去走动下，到 11 点 50 准备吃饭了。吃完饭睡一个小时，下午 2 点正式开始工作了，今天就统计了些数据，导出excel，发邮件和短信。导出用的 <a href="https://packagist.org/packages/maatwebsite/excel" target="_blank" rel="noopener">https://packagist.org/packages/maatwebsite/excel</a> 这个 laravel composer 包，使用挺方便的，看代码：</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line"><span class="comment">// http://www.maatwebsite.nl/laravel-excel/docs/export`</span></span><br><span class="line"></span><br><span class="line"> <span class="string">`$data = array(`</span></span><br><span class="line"></span><br><span class="line"> <span class="string">`array('data1',  'data2'),`</span></span><br><span class="line"></span><br><span class="line"> <span class="string">`array('data3',  'data4')`</span></span><br><span class="line"></span><br><span class="line"> <span class="string">`);`</span></span><br><span class="line"></span><br><span class="line"> <span class="string">`Excel::create('Filename',  function($excel) use($data)  &#123;`</span></span><br><span class="line"></span><br><span class="line">  <span class="string">`$excel-&gt;sheet('Sheetname',  function($sheet) use($data)  &#123;`</span></span><br><span class="line"></span><br><span class="line">  <span class="string">`$sheet-&gt;fromArray($data);`</span></span><br><span class="line"></span><br><span class="line"> <span class="string">`&#125;);`</span></span><br><span class="line"></span><br><span class="line"> <span class="string">`&#125;)-&gt;store('xls', storage_path('excel/exports'))-&gt;export('xls');`</span></span><br></pre></td></tr></table></figure>
<p>然后到 6 点半准备去吃饭的时候 pm 说要改个东西。他以为挺简单的，结果我一看，卧槽，简单你妹啊（我没有说出来，如果他看我的眼神应该会明白的），公司的代码涉及几个项目，好几个代码仓库，需要改动其他同事负责的代码，那是公司观看直播的核心代码，一个方法几千行，没错，几千行代码，那一个个if else 一个个 foreach，看得我头大，我真不敢动，生怕改出问题，然后问了下同事（本来想让他帮忙改，人家有孩子了，这个点了得回去带孩子，好吧），需要改哪些地方，逻辑怎么处理，然后就整到 9 点了，我也是服了pm，麻烦下次有事提前说行不。</p>
<p>出地铁的时候就发现暴雨了，记得上次也是这样，看看当时的微博。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-4717cc2c741dc3de?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>一堆人挤在地铁口，都没带伞，叫车也不好叫，而且我住的地方离地铁也不远，就是有点绕，好不容易等到雨小了，赶紧冲出去一路小跑，这里我不得不吐槽北京那破排水系统，每次暴雨，路上的积水都可以划船了，然后不小心一脚下去，鞋子湿了，好吧，到家再换吧，结果路上一辆车飞过，路边的水飞溅，这下全身湿了，真忍不住爆出口，光顾着自己，开车也没素质，如同地铁里那些不戴耳机看电影电视剧的， fuck 。</p>
<p>回到家发现早上出门忘记关阳台的门了，经过暴雨洗礼都进水了，还好电脑没事，这一天真让人无 fuck 可说。</p>
<p>记得 2012 年刚来北京那会，住在北京大学附近的颐和园路东口的城中村，那里虽然靠着地铁 4 号线，圆明园，北大，清华，然而我同 8 个人住在一个屋子里，有一次也是暴雨，没带伞，身上没钱，那会也没有微信支付宝，然后一个人就这样淋着雨走回去，走着走着都分不清眼泪和雨水了。</p>
<p>北京待了这么多年了，我真的越来越不喜欢这个城市了。</p>
<p>就在我写这篇文章的时候四川又地震了（08 年大地震过去近 10 年了），相比而言今天这点破事根本不值一提，祝福四川平安。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-7cb55043512d0c76?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>好了，快零点了，听首歌睡觉吧。</p>

          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope="" itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2019/08/26/周杰伦出道16年精选/">

    <span hidden itemprop="author" itemscope="" itemtype="http://schema.org/Person">
      <meta itemprop="name" content="苏生不惑">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope="" itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="苏生不惑的博客">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/2019/08/26/周杰伦出道16年精选/" itemprop="url">周杰伦出道16年精选</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-08-26T20:04:22+08:00">
                2019-08-26
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          
            <div class="post-wordcount">
              
                
                  <span class="post-meta-divider">|</span>
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  765 字
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  3 分钟
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>这是一篇旧文。<br>偶然在微博看到周杰伦出道16年精选73首歌的视频，地址<a href="http://weibo.com/tv/v/EcAmx4z11?from=music" target="_blank" rel="noopener">http://weibo.com/tv/v/EcAmx4z11?from=music</a>  顿时让无数人开始怀旧，那是一代人的青春啊，如果要在那么多经典歌曲里找一首配今天的文，那便是《晴天》了。那条微博转发已过万，里面73首歌我几乎可以从头唱到尾，我曾经也是追星一族，哈哈。</p>
<p>看完视频后我就想下载到电脑，可以时不时拿来怀旧下，视频是由秒拍录制的，播放的是一个swf文件，地址<a href="http://wscdn.miaopai.com/splayer2.2.0.swf?scid=GcezAtC7sRC6~1S3GXxLkA__&amp;token=&amp;autopause=false&amp;fromweibo=false" target="_blank" rel="noopener">http://wscdn.miaopai.com/splayer2.2.0.swf?scid=GcezAtC7sRC6~1S3GXxLkA__&amp;token=&amp;autopause=false&amp;fromweibo=false</a> ，于是开始用python下载视频，源代码：<a href="https://gist.github.com/zhiyue/f49c8e951d5339b9b0c763f0ce8e1a6e" target="_blank" rel="noopener">https://gist.github.com/zhiyue/f49c8e951d5339b9b0c763f0ce8e1a6e</a><br><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">import</span> urllib.parse</span><br><span class="line"><span class="keyword">import</span> requests</span><br><span class="line"></span><br><span class="line">headers = &#123;    </span><br><span class="line"><span class="string">"Accept"</span>: <span class="string">"*/*"</span>,    </span><br><span class="line"><span class="string">"Accept-Encoding"</span>: <span class="string">"gzip, deflate, sdch"</span>,   </span><br><span class="line"> <span class="string">"Accept-Language"</span>: <span class="string">"zh-CN,zh;q=0.8,en;q=0.6"</span>,    </span><br><span class="line"> <span class="string">"Connection"</span>: <span class="string">"keep-alive"</span>,    </span><br><span class="line"> <span class="string">"Host"</span>: <span class="string">"api.miaopai.com"</span>,    </span><br><span class="line"> <span class="string">"User-Agent"</span>: <span class="string">"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)"</span></span><br><span class="line">                  <span class="string">" Chrome/50.0.2661.102 Safari/537.36"</span>,   </span><br><span class="line">  <span class="string">"X-Requested-With"</span>: <span class="string">"ShockwaveFlash/23.0.0.166"</span></span><br><span class="line"></span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line">def get_mp4_addr(base_url):</span><br><span class="line">    api_url = <span class="string">'http://api.miaopai.com/m/v2_channel.json'</span></span><br><span class="line">    rs = urllib.parse.urlparse(base_url)</span><br><span class="line">    q = urllib.parse.parse_qs(rs.query)</span><br><span class="line">    scid = q[<span class="string">'scid'</span>][<span class="number">0</span>]</span><br><span class="line">    params = &#123;        </span><br><span class="line">      <span class="string">'fillType'</span>: <span class="string">'259'</span>,       </span><br><span class="line">       <span class="string">'scid'</span>: scid,        </span><br><span class="line">       <span class="string">'vend'</span>: <span class="string">'miaopai'</span></span><br><span class="line">    &#125;</span><br><span class="line">    headers[<span class="string">'Referer'</span>] = base_url</span><br><span class="line">    r = requests.get(api_url, params=params, headers=headers)   </span><br><span class="line">    #获取到的json结构为</span><br><span class="line">    <span class="string">""</span><span class="string">"</span></span><br><span class="line"><span class="string">    &#123;</span></span><br><span class="line"><span class="string">    'status': 200,</span></span><br><span class="line"><span class="string">    'msg': 'OK',</span></span><br><span class="line"><span class="string">    'result': &#123;</span></span><br><span class="line"><span class="string">        'category_info': [</span></span><br><span class="line"><span class="string">            </span></span><br><span class="line"><span class="string">        ],</span></span><br><span class="line"><span class="string">        'liveStatus': 0,</span></span><br><span class="line"><span class="string">        'otherinfo': &#123;</span></span><br><span class="line"><span class="string">            'othertype': 3,</span></span><br><span class="line"><span class="string">            'weiboId': '2709577332',</span></span><br><span class="line"><span class="string">            'url': 'http: //weibo.com/2709577332',</span></span><br><span class="line"><span class="string">            'weiboNick': 'Happy张江',</span></span><br><span class="line"><span class="string">            'mark1': '@Happy张江',</span></span><br><span class="line"><span class="string">            'mark2': 'weibo.com/2709577332',</span></span><br><span class="line"><span class="string">            'vend': 'miaopai'</span></span><br><span class="line"><span class="string">        &#125;,</span></span><br><span class="line"><span class="string">        'ext': &#123;</span></span><br><span class="line"><span class="string">            'h': 358,</span></span><br><span class="line"><span class="string">            'lengthNice': '29: 11',</span></span><br><span class="line"><span class="string">            'location': '',</span></span><br><span class="line"><span class="string">            'owner': &#123;</span></span><br><span class="line"><span class="string">                'icon': 'http: //tp1.sinaimg.cn/2709577332/180/40022299983/0',</span></span><br><span class="line"><span class="string">                'loginName': 'paike_ex1p1ji8gr',</span></span><br><span class="line"><span class="string">                'signed_info': '',</span></span><br><span class="line"><span class="string">                'status': 1086,</span></span><br><span class="line"><span class="string">                'top_num': 0,</span></span><br><span class="line"><span class="string">                'suid': 'P7Z0CNbUcrTke~V0',</span></span><br><span class="line"><span class="string">                'v': True,</span></span><br><span class="line"><span class="string">                'info': '',</span></span><br><span class="line"><span class="string">                'nick': 'Happy张江',</span></span><br><span class="line"><span class="string">                'gold': 0,</span></span><br><span class="line"><span class="string">                'talent_signed': 0,</span></span><br><span class="line"><span class="string">                'talent_v': 1,</span></span><br><span class="line"><span class="string">                'oldIcon': 'http: //tp1.sinaimg.cn/2709577332/180/40022299983/0',</span></span><br><span class="line"><span class="string">                'org_v': 0,</span></span><br><span class="line"><span class="string">                'talent_name': '知名博主'</span></span><br><span class="line"><span class="string">            &#125;,</span></span><br><span class="line"><span class="string">            'finishTime': 1476280433842,</span></span><br><span class="line"><span class="string">            'length': 1751,</span></span><br><span class="line"><span class="string">            'finishTimeNice': '10-12',</span></span><br><span class="line"><span class="string">            'ft': '#周杰伦#出道16年精选73首歌，从青涩的小男生到幸福的爸爸，音乐风格也有很多创新，你是否从第一首开始可以跟着哼到最后！',</span></span><br><span class="line"><span class="string">            'status': 30,</span></span><br><span class="line"><span class="string">            't': '#周杰伦#出道16年精选73首歌，从青涩的小男生到幸福的爸爸，音乐风格也有很多创新，你是否从第一首开始可以跟着哼到最后！',</span></span><br><span class="line"><span class="string">            'w': 640</span></span><br><span class="line"><span class="string">        &#125;,</span></span><br><span class="line"><span class="string">        'pic': &#123;</span></span><br><span class="line"><span class="string">            'm': '_m.jpg',</span></span><br><span class="line"><span class="string">            's': '_s.jpg',</span></span><br><span class="line"><span class="string">            'base': 'http: //dlqncdn.miaopai.com/stream/GcezAtC7sRC6~1S3GXxLkA__'</span></span><br><span class="line"><span class="string">        &#125;,</span></span><br><span class="line"><span class="string">        'type': 16,</span></span><br><span class="line"><span class="string">        'ad': &#123;</span></span><br><span class="line"><span class="string">            'video': '',</span></span><br><span class="line"><span class="string">            'url': '',</span></span><br><span class="line"><span class="string">            'pic': ''</span></span><br><span class="line"><span class="string">        &#125;,</span></span><br><span class="line"><span class="string">        'stream': &#123;</span></span><br><span class="line"><span class="string">            'ver': 'miaopai',</span></span><br><span class="line"><span class="string">            'sign': 'ssig=6d6e2196b6d1e33d196e5744fa90979b&amp;time_stamp=1476532658459',</span></span><br><span class="line"><span class="string">            'ios': 'mp4miaopai',</span></span><br><span class="line"><span class="string">            'base': 'http: //gslb.miaopai.com/stream/GcezAtC7sRC6~1S3GXxLkA__.mp4?vend=miaopai&amp;',</span></span><br><span class="line"><span class="string">            'vend': 'miaopai',</span></span><br><span class="line"><span class="string">            'and': 'mp4'</span></span><br><span class="line"><span class="string">        &#125;,</span></span><br><span class="line"><span class="string">        'place_top': 0,</span></span><br><span class="line"><span class="string">        'scid': 'GcezAtC7sRC6~1S3GXxLkA__',</span></span><br><span class="line"><span class="string">        'ext2': &#123;</span></span><br><span class="line"><span class="string">            'isPub': 2,</span></span><br><span class="line"><span class="string">            'length': 1751,</span></span><br><span class="line"><span class="string">            'createTimeNice': '10-12',</span></span><br><span class="line"><span class="string">            'createTime': 1476279232807,</span></span><br><span class="line"><span class="string">            'guid': 0,</span></span><br><span class="line"><span class="string">            'vend': 'miaopai'</span></span><br><span class="line"><span class="string">        &#125;,</span></span><br><span class="line"><span class="string">        'topicinfo': [</span></span><br><span class="line"><span class="string">            '周杰伦'</span></span><br><span class="line"><span class="string">        ]</span></span><br><span class="line"><span class="string">    &#125;</span></span><br><span class="line"><span class="string">&#125;</span></span><br><span class="line"><span class="string">    "</span><span class="string">""</span></span><br><span class="line">    msg = r.json()[<span class="string">'msg'</span>]</span><br><span class="line">    result = r.json()[<span class="string">'result'</span>]</span><br><span class="line">    file_name = result[<span class="string">'ext'</span>][<span class="string">'ft'</span>]    </span><br><span class="line">    <span class="keyword">if</span> msg == <span class="string">'OK'</span>:</span><br><span class="line">        stream_type = result[<span class="string">'stream'</span>][<span class="string">'and'</span>]</span><br><span class="line">        base = result[<span class="string">'stream'</span>][<span class="string">'base'</span>]</span><br><span class="line">        sign_str = result[<span class="string">'stream'</span>][<span class="string">'sign'</span>]</span><br><span class="line">        mp4_addr = <span class="string">'%s?%s&amp;f=/%s.%s'</span> % (base, sign_str, scid, stream_type)        </span><br><span class="line">        <span class="keyword">return</span> mp4_addr, <span class="string">'%s.%s'</span> % (file_name, stream_type)</span><br><span class="line"></span><br><span class="line">def download_video(mp4_addr, file_name):</span><br><span class="line">    r = requests.get(mp4_addr, stream=True)    </span><br><span class="line">    <span class="keyword">if</span> r.status_code == <span class="number">200</span>:</span><br><span class="line">        <span class="keyword">with</span> open(file_name, <span class="string">'wb'</span>) <span class="keyword">as</span> f:            </span><br><span class="line">           <span class="keyword">for</span> chunk <span class="keyword">in</span> r.iter_content(chunk_size=<span class="number">4096</span>):               </span><br><span class="line">               <span class="keyword">if</span> chunk:</span><br><span class="line">                    f.write(chunk)</span><br><span class="line">               </span><br><span class="line">    <span class="keyword">if</span> __name__ == <span class="string">'__main__'</span>:   </span><br><span class="line">        #如果想下载其他视频，只要替换这个链接即可</span><br><span class="line">        url = <span class="string">'http://wscdn.miaopai.com/splayer2.2.0.swf?scid=GcezAtC7sRC6~1S3GXxLkA__&amp;token=&amp;autopause=false&amp;fromweibo=false'</span></span><br><span class="line">        mp4_addr, file_name = get_mp4_addr(url)</span><br><span class="line">        download_video(mp4_addr, file_name)</span><br></pre></td></tr></table></figure></p>
<p>最后我把视频上传到百度网盘了，想要的小伙伴自己下载吧，地址<a href="http://pan.baidu.com/s/1eRAllJk" target="_blank" rel="noopener">http://pan.baidu.com/s/1eRAllJk</a></p>

          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope="" itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2019/08/26/我的2016年/">

    <span hidden itemprop="author" itemscope="" itemtype="http://schema.org/Person">
      <meta itemprop="name" content="苏生不惑">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope="" itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="苏生不惑的博客">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/2019/08/26/我的2016年/" itemprop="url">我的2016年</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-08-26T20:00:08+08:00">
                2019-08-26
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          
            <div class="post-wordcount">
              
                
                  <span class="post-meta-divider">|</span>
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  1.8k 字
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  6 分钟
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>这是一篇旧文。<br>现在是2016年12月31日20点，我在北京，指缝太宽，时间太瘦，悄悄从指缝间溜走，一年真的要过去了。 微博，微信上看到不少人在总结自己的2016，如小道消息公众号这篇16位读者的2016年，值得看看 <a href="http://mp.weixin.qq.com/s/iQerUx6yfsqo7RwWQPkYvQ" target="_blank" rel="noopener">http://mp.weixin.qq.com/s/iQerUx6yfsqo7RwWQPkYvQ</a> 还有微博上大网红 papi酱 做的2016大事件视频<a href="http://weibo.com/2714280233/Eowpl07VL" target="_blank" rel="noopener">http://weibo.com/2714280233/Eowpl07VL</a></p>
<p>2016年开始更新公众号，目前写了20篇左右。也看了几部电影《叶问3》《老炮》《从你的全世界路过》《28岁未成年》。还有记录自己的网易音乐 <a href="http://music.163.com/#/my/m/music/playlist?id=406121360" target="_blank" rel="noopener">http://music.163.com/#/my/m/music/playlist?id=406121360</a> 借着公众号，也回顾下我的2016。其实微博相册是一种更好的记录，有兴趣也可以看看<a href="http://photo.weibo.com/2717930601/talbum/index#!/mode/1/page/1" target="_blank" rel="noopener">http://photo.weibo.com/2717930601/talbum/index#!/mode/1/page/1</a></p>
<p>还记得2016年年初的时候定了个小目标<a href="http://weibo.com/2717930601/Dbpg3xzx4" target="_blank" rel="noopener">http://weibo.com/2717930601/Dbpg3xzx4</a></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-3fc545edbabba49f?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>很遗憾，第一个目标并木有实现。年初的时候遇见一个合适的妹子，然而由于各种缘由失之交臂，这是一个标准的文艺女青年(她的公众号:蓝胖子写字)，爱旅行有才华，敢爱敢拼,祝福她 2017 心有所属。</p>
<p>第二个关于技术方面，golang 只是安装入门了下，因为实际工作中并没有用到，今年要加强实践了。python 是更深入了，之前发布的几篇公众号文章也是基于python。人生苦短，python必备。php 和 javascript 因为在工作中用到，所以是日趋进步，这个可以在 <a href="https://segmentfault.com/u/sushengbuhuo" target="_blank" rel="noopener">https://segmentfault.com/u/sushengbuhuo</a> 上看到我的记录。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-3684d283b0280f53?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>第三个关于在sf社区的声望，很可惜，目前10.8k，由于前2个季度没有勤快答题及更新博客，离12k还有点距离，不过1月份就可以完成的。sf是我最喜欢的纯技术社区了，几乎每天回复问题，看别人的回复，还有各种经典文章，系列博文，今年的博客也没写几篇，明年也要加强。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-a9231097b86ca866?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-b8b77cae5b578850?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>第四个关于看10本书，很遗憾，今年一本书都没看完，尽管已经买了不少书了，真是惭愧，也许是太浮躁了，没法静下心来，今年努力把 python实践 看完。</p>
<p>第五个关于更新微博，这个我做到了，看截图，目前我的微博数63269，年初的时候刚3万，光2016年就发布了3万多条微博，平均每天90条左右，这是我坚持最长久的一件事，我都佩服我自己了。同时微信朋友圈更新了100篇，相比微博就太少了。更新那么多微博，大多是技术方面的，其实我并没有都看完，就当一个记录，下次有问题的时候可以直接在微博搜索到。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-1326278829f0bfea?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-6527f7349a6fa56a?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>第六个关于存钱，年初定了5万的目标，结果超了7万，这并不是一个段子。 因为我每个月的花费记录都在支付宝记账上，从2014年起每天记账，坚持了3年。</p>
<p>第七个关于看演唱会，感谢好友@马华麟 的票，7月2号在北京工体看了场《致青春》演唱会，现场听了老狼的《同桌的你》，还有为了宣传电影《致青春，原来你也在这里》的刘亦菲也来了。见微博地址<a href="http://weibo.com/2717930601/DCY6ShT0Z" target="_blank" rel="noopener">http://weibo.com/2717930601/DCY6ShT0Z</a> 之前一直听喜马拉雅主播@夏雨嫣 的节目，正好年初的时候举办了次线下活动(<a href="http://weibo.com/2717930601/DckHEEMsx)，见到了她本人，很温和的妹子，因为爱好播音利用业余时间学习录制节目，每一期节目很用心的制作，经常忙到凌晨一两点，目前在喜马也算一红人，祝福她2017" target="_blank" rel="noopener">http://weibo.com/2717930601/DckHEEMsx)，见到了她本人，很温和的妹子，因为爱好播音利用业余时间学习录制节目，每一期节目很用心的制作，经常忙到凌晨一两点，目前在喜马也算一红人，祝福她2017</a> 成功脱单。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-d4d3932a4bb86856?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>第八个关于工作，这一年加薪了，很开心，团队人员增加了，和小伙伴合作也很愉快。年会的时候还中奖了<a href="http://weibo.com/2717930601/DeuVSBk17" target="_blank" rel="noopener">http://weibo.com/2717930601/DeuVSBk17</a> 目前公司用的 laravel 开发框架，折腾不少，也算对这个框架更加熟悉。 4月份的时候团建，去了趟天津盘山，许久不爬山了，不过爬山对我来说是小case了，以后还得多运动。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-d8777cc395071816?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>第九个关于熬夜，很遗憾，几乎每天凌晨以后睡觉，但没有超过1点。</p>
<p>第十个关于房子，10月份国庆的时候回了趟家，家里的房子已经装修好入住了。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-99ecc5e96534e42b?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-4990cd9c26e20143?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-38d8db54e6ce596d?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>尽管小目标没有都实现，但梦想总是要有的，万一实现了呢，所以也定下2017的计划：</p>
<ol>
<li><p>都说先成家后立业，那就找一个能彼此成就的她成家吧。</p>
</li>
<li><p>坚持更新微博和公众号。</p>
</li>
<li><p>segmentfault 声望累计到18K。</p>
</li>
<li><p>看一场演唱会或一次旅行。</p>
</li>
<li><p>攒钱，为买房准备。</p>
</li>
<li><p>多运动锻炼，杜绝熬夜。</p>
</li>
<li><p>继续深入php  python ，学习 golang 到可用阶段。</p>
</li>
<li><p>加薪升职。</p>
</li>
</ol>
<p>ps：友情提醒，Copyright 写死的小伙伴，又到了一年一次更新的时候了，建议用 php 的 date(‘Y’) 以后再也不用手动改啦。</p>
<p>pps：即将步入2017，感谢关注这个公众号的你们，简单直接点，给大家送红包了，本公众号回复 2017新年快乐 获取。</p>
<p>最后以知乎上的一个回复来总结2016大事件:</p>
<blockquote>
<p>一年又将尽，春晚恐词穷。 此文致冯巩，此韵致黄宏。 首当洪荒力，奥运泥石流。 天朝绝凶虎，帝国破坏龙。 越界超级丹，身体被掏空。 夜光聊剧本，绿野摄仙踪。 河海有夏露，西北有马蓉。 校花关不住，校草独茕茕。 一人饮酒醉，抚掌如撩妹。 世界那么大，回家洗洗睡。 哎哟小公举，嘿咻老污龟。 在座说诸位，不是针对谁。 司机发快车，友谊沉小船。 问你怕不怕，说他翻就翻。 动如暴漫脸，静若葛优瘫。 厉害我的哥，你咋不上天？ 天上核武器，局座因果律。 恍然若三体，面壁有大计。 陨石炸航母，酸雨去武装。 海带反潜艇，雾霾防激光。 生活岂苟且，有诗有远方。 人皆奉网红，我独为网黄。 天下假猪套，人间新狗粮。 一脸甩懵逼，猝然不及防。 城市套路深，我欲回农村。 香菇太蓝瘦，蜜汁不清真。 一亿小目标，九旬大新闻。 深情留不住，套路得人心。 年年有金句，白驹如过隙。 当时与语人，及今谁复记？ 吃瓜一时快，事了拂衣去。 唯有虹桥姐，初心终不易。</p>
</blockquote>
<p>想起冯小刚电影《甲方乙方》最后那句“1997年过去了，我很怀念它”。那是我们每个人努力实现、苦甜交加、荒诞但又迷人的梦想。 现在2016也要过去了，我也怀念它。</p>
<p><img src="https://upload-images.jianshu.io/upload_images/17817191-2d926aaf347e301e?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="image"></p>
<p>每篇文章推荐一个工具：2016互联网期末考试，看看你及格吗 <a href="http://poll2016.sspai.com/?from=timeline" target="_blank" rel="noopener">http://poll2016.sspai.com/?from=timeline</a></p>

          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
  </section>

  
  <nav class="pagination">
    <a class="extend prev" rel="prev" href="/page/29/"><i class="fa fa-angle-left"></i></a><a class="page-number" href="/">1</a><span class="space">&hellip;</span><a class="page-number" href="/page/29/">29</a><span class="page-number current">30</span><a class="page-number" href="/page/31/">31</a><span class="space">&hellip;</span><a class="page-number" href="/page/39/">39</a><a class="extend next" rel="next" href="/page/31/"><i class="fa fa-angle-right"></i></a>
  </nav>



          </div>
          


          

        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      

      <section class="site-overview-wrap sidebar-panel sidebar-panel-active">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
            
              <p class="site-author-name" itemprop="name">苏生不惑</p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives/">
              
                  <span class="site-state-item-count">382</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/tags/index.html">
                  <span class="site-state-item-count">37</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://github.com/sushengbuhuo" target="_blank" title="GitHub">
                      
                        <i class="fa fa-fw fa-github"></i>GitHub</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="mysusheng@gmail.com" target="_blank" title="E-Mail">
                      
                        <i class="fa fa-fw fa-envelope"></i>E-Mail</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://plus.google.com/mysusheng" target="_blank" title="Google">
                      
                        <i class="fa fa-fw fa-google"></i>Google</a>
                  </span>
                
            </div>
          

          
          

          
          
            <div class="links-of-blogroll motion-element links-of-blogroll-block">
              <div class="links-of-blogroll-title">
                <i class="fa  fa-fw fa-link"></i>
                Links
              </div>
              <ul class="links-of-blogroll-list">
                
                  <li class="links-of-blogroll-item">
                    <a href="http://v2ex.com/" title="v2ex" target="_blank">v2ex</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.fanhaobai.com/" title="fanhaobai" target="_blank">fanhaobai</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://yuanxuxu.com/archives/" title="yuanxuxu" target="_blank">yuanxuxu</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.snail-c.cn/article" title="snail-c" target="_blank">snail-c</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="http://showcj.com/archives" title="showcj" target="_blank">showcj</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="http://vultr.aicnm.com/%E6%9C%80%E6%96%B0Vultr%E6%B3%A8%E5%86%8C%E5%8F%8AVPS%E8%B4%AD%E4%B9%B0%E5%9B%BE%E6%96%87%E6%95%99%E7%A8%8B/" title="vultr" target="_blank">vultr</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.lucissfer.com/" title="lucissfer" target="_blank">lucissfer</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://blog.csdn.net/fdipzone/article/details/79352685" title="傲雪星枫" target="_blank">傲雪星枫</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.yoby123.cn/index.php/category/default/" title="小白的分享" target="_blank">小白的分享</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.cnblogs.com/52fhy/p/5819995.html" title="PHP攻城狮" target="_blank">PHP攻城狮</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://blog.jiaojie.site/" title="php" target="_blank">php</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://sphard.com/archives/" title="sphard" target="_blank">sphard</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://yuanxuxu.com/archives/" title="LNMP技术栈笔记" target="_blank">LNMP技术栈笔记</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="http://www.coding10.com/" title="学习 Laravel" target="_blank">学习 Laravel</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://shuwoom.com/?page_id=929" title="区块链学习指南" target="_blank">区块链学习指南</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://greenlightt.github.io/archives/" title="greenlightt" target="_blank">greenlightt</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.0php.net/archives/" title="0php" target="_blank">0php</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="http://www.fordba.com/category/mysql" title="mysql" target="_blank">mysql</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.itcodemonkey.com/" title="程序员" target="_blank">程序员</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.yanshuo.me/r/v2ex" title="言说" target="_blank">言说</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.timiguo.com/archive.html" title="提米果的博客" target="_blank">提米果的博客</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://phpartisan.cn/news/112.html" title="phpartisan" target="_blank">phpartisan</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.cnblogs.com/52fhy/" title="飞鸿影" target="_blank">飞鸿影</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="http://www.54php.cn/" title="54php" target="_blank">54php</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.lazyman.vip/" title="营销" target="_blank">营销</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.njphper.com/archives/" title="做人呢最重要的就是开心" target="_blank">做人呢最重要的就是开心</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.h57.pw/" title="php 初心者" target="_blank">php 初心者</a>
                  </li>
                
              </ul>
            </div>
          

          

        </div>
      </section>

      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>

<div class="copyright">&copy; <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">苏生不惑</span>

  
</div>


  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Gemini</a> v5.1.4</div>



<div>
<span id="showDays"></span>

</div>

<span id="busuanzi_container_site_pv">
   总访问量:<span id="busuanzi_value_site_pv"></span>次
</span>



  <span class="post-meta-divider">|</span>



<div class="theme-info">
  <div class="powered-by"></div>
  <span class="post-count">博客全站共773.8k字</span>
</div>
<script>
var birthDay = new Date("11/20/2018");
var now = new Date();
var duration = now.getTime() - birthDay.getTime();
var total= Math.floor(duration / (1000 * 60 * 60 * 24));
document.getElementById("showDays").innerHTML = "本站已运行 "+total+" 天";
</script>

        
<div class="busuanzi-count">
  <script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>

  
    <span class="site-uv">
      <i class="fa fa-user"></i>
      <span class="busuanzi-value" id="busuanzi_value_site_uv"></span>
      人次
    </span>
  

  
    <span class="site-pv">
      <i class="fa fa-eye"></i>
      <span class="busuanzi-value" id="busuanzi_value_site_pv"></span>
      次
    </span>
  
</div>








        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  


  











  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  

  
  
    <script type="text/javascript" src="/lib/canvas-nest/canvas-nest.min.js"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.4"></script>



  

  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  











<script type="text/javascript">
    (function() {
        // 匿名函数，防止污染全局变量
        var utterances = document.createElement('script');
        utterances.type = 'text/javascript';
        utterances.async = true;
        utterances.setAttribute('issue-term','0')
        utterances.setAttribute('theme','')
        utterances.setAttribute('repo','sushengbuhuo/laravel_ioc_demo')
        utterances.crossorigin = 'anonymous';
        utterances.src = 'https://utteranc.es/client.js';
        // content 是要插入评论的地方
        document.getElementById('gitment-container').appendChild(utterances);
    })();
</script>


  

  <script type="text/javascript">
    // Popup Window;
    var isfetched = false;
    var isXml = true;
    // Search DB path;
    var search_path = "search.xml";
    if (search_path.length === 0) {
      search_path = "search.xml";
    } else if (/json$/i.test(search_path)) {
      isXml = false;
    }
    var path = "/" + search_path;
    // monitor main search box;

    var onPopupClose = function (e) {
      $('.popup').hide();
      $('#local-search-input').val('');
      $('.search-result-list').remove();
      $('#no-result').remove();
      $(".local-search-pop-overlay").remove();
      $('body').css('overflow', '');
    }

    function proceedsearch() {
      $("body")
        .append('<div class="search-popup-overlay local-search-pop-overlay"></div>')
        .css('overflow', 'hidden');
      $('.search-popup-overlay').click(onPopupClose);
      $('.popup').toggle();
      var $localSearchInput = $('#local-search-input');
      $localSearchInput.attr("autocapitalize", "none");
      $localSearchInput.attr("autocorrect", "off");
      $localSearchInput.focus();
    }

    // search function;
    var searchFunc = function(path, search_id, content_id) {
      'use strict';

      // start loading animation
      $("body")
        .append('<div class="search-popup-overlay local-search-pop-overlay">' +
          '<div id="search-loading-icon">' +
          '<i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>' +
          '</div>' +
          '</div>')
        .css('overflow', 'hidden');
      $("#search-loading-icon").css('margin', '20% auto 0 auto').css('text-align', 'center');

      $.ajax({
        url: path,
        dataType: isXml ? "xml" : "json",
        async: true,
        success: function(res) {
          // get the contents from search data
          isfetched = true;
          $('.popup').detach().appendTo('.header-inner');
          var datas = isXml ? $("entry", res).map(function() {
            return {
              title: $("title", this).text(),
              content: $("content",this).text(),
              url: $("url" , this).text()
            };
          }).get() : res;
          var input = document.getElementById(search_id);
          var resultContent = document.getElementById(content_id);
          var inputEventFunction = function() {
            var searchText = input.value.trim().toLowerCase();
            var keywords = searchText.split(/[\s\-]+/);
            if (keywords.length > 1) {
              keywords.push(searchText);
            }
            var resultItems = [];
            if (searchText.length > 0) {
              // perform local searching
              datas.forEach(function(data) {
                var isMatch = false;
                var hitCount = 0;
                var searchTextCount = 0;
                var title = data.title.trim();
                var titleInLowerCase = title.toLowerCase();
                var content = data.content.trim().replace(/<[^>]+>/g,"");
                var contentInLowerCase = content.toLowerCase();
                var articleUrl = decodeURIComponent(data.url);
                var indexOfTitle = [];
                var indexOfContent = [];
                // only match articles with not empty titles
                if(title != '') {
                  keywords.forEach(function(keyword) {
                    function getIndexByWord(word, text, caseSensitive) {
                      var wordLen = word.length;
                      if (wordLen === 0) {
                        return [];
                      }
                      var startPosition = 0, position = [], index = [];
                      if (!caseSensitive) {
                        text = text.toLowerCase();
                        word = word.toLowerCase();
                      }
                      while ((position = text.indexOf(word, startPosition)) > -1) {
                        index.push({position: position, word: word});
                        startPosition = position + wordLen;
                      }
                      return index;
                    }

                    indexOfTitle = indexOfTitle.concat(getIndexByWord(keyword, titleInLowerCase, false));
                    indexOfContent = indexOfContent.concat(getIndexByWord(keyword, contentInLowerCase, false));
                  });
                  if (indexOfTitle.length > 0 || indexOfContent.length > 0) {
                    isMatch = true;
                    hitCount = indexOfTitle.length + indexOfContent.length;
                  }
                }

                // show search results

                if (isMatch) {
                  // sort index by position of keyword

                  [indexOfTitle, indexOfContent].forEach(function (index) {
                    index.sort(function (itemLeft, itemRight) {
                      if (itemRight.position !== itemLeft.position) {
                        return itemRight.position - itemLeft.position;
                      } else {
                        return itemLeft.word.length - itemRight.word.length;
                      }
                    });
                  });

                  // merge hits into slices

                  function mergeIntoSlice(text, start, end, index) {
                    var item = index[index.length - 1];
                    var position = item.position;
                    var word = item.word;
                    var hits = [];
                    var searchTextCountInSlice = 0;
                    while (position + word.length <= end && index.length != 0) {
                      if (word === searchText) {
                        searchTextCountInSlice++;
                      }
                      hits.push({position: position, length: word.length});
                      var wordEnd = position + word.length;

                      // move to next position of hit

                      index.pop();
                      while (index.length != 0) {
                        item = index[index.length - 1];
                        position = item.position;
                        word = item.word;
                        if (wordEnd > position) {
                          index.pop();
                        } else {
                          break;
                        }
                      }
                    }
                    searchTextCount += searchTextCountInSlice;
                    return {
                      hits: hits,
                      start: start,
                      end: end,
                      searchTextCount: searchTextCountInSlice
                    };
                  }

                  var slicesOfTitle = [];
                  if (indexOfTitle.length != 0) {
                    slicesOfTitle.push(mergeIntoSlice(title, 0, title.length, indexOfTitle));
                  }

                  var slicesOfContent = [];
                  while (indexOfContent.length != 0) {
                    var item = indexOfContent[indexOfContent.length - 1];
                    var position = item.position;
                    var word = item.word;
                    // cut out 100 characters
                    var start = position - 20;
                    var end = position + 80;
                    if(start < 0){
                      start = 0;
                    }
                    if (end < position + word.length) {
                      end = position + word.length;
                    }
                    if(end > content.length){
                      end = content.length;
                    }
                    slicesOfContent.push(mergeIntoSlice(content, start, end, indexOfContent));
                  }

                  // sort slices in content by search text's count and hits' count

                  slicesOfContent.sort(function (sliceLeft, sliceRight) {
                    if (sliceLeft.searchTextCount !== sliceRight.searchTextCount) {
                      return sliceRight.searchTextCount - sliceLeft.searchTextCount;
                    } else if (sliceLeft.hits.length !== sliceRight.hits.length) {
                      return sliceRight.hits.length - sliceLeft.hits.length;
                    } else {
                      return sliceLeft.start - sliceRight.start;
                    }
                  });

                  // select top N slices in content

                  var upperBound = parseInt('1');
                  if (upperBound >= 0) {
                    slicesOfContent = slicesOfContent.slice(0, upperBound);
                  }

                  // highlight title and content

                  function highlightKeyword(text, slice) {
                    var result = '';
                    var prevEnd = slice.start;
                    slice.hits.forEach(function (hit) {
                      result += text.substring(prevEnd, hit.position);
                      var end = hit.position + hit.length;
                      result += '<b class="search-keyword">' + text.substring(hit.position, end) + '</b>';
                      prevEnd = end;
                    });
                    result += text.substring(prevEnd, slice.end);
                    return result;
                  }

                  var resultItem = '';

                  if (slicesOfTitle.length != 0) {
                    resultItem += "<li><a href='" + articleUrl + "' class='search-result-title'>" + highlightKeyword(title, slicesOfTitle[0]) + "</a>";
                  } else {
                    resultItem += "<li><a href='" + articleUrl + "' class='search-result-title'>" + title + "</a>";
                  }

                  slicesOfContent.forEach(function (slice) {
                    resultItem += "<a href='" + articleUrl + "'>" +
                      "<p class=\"search-result\">" + highlightKeyword(content, slice) +
                      "...</p>" + "</a>";
                  });

                  resultItem += "</li>";
                  resultItems.push({
                    item: resultItem,
                    searchTextCount: searchTextCount,
                    hitCount: hitCount,
                    id: resultItems.length
                  });
                }
              })
            };
            if (keywords.length === 1 && keywords[0] === "") {
              resultContent.innerHTML = '<div id="no-result"><i class="fa fa-search fa-5x" /></div>'
            } else if (resultItems.length === 0) {
              resultContent.innerHTML = '<div id="no-result"><i class="fa fa-frown-o fa-5x" /></div>'
            } else {
              resultItems.sort(function (resultLeft, resultRight) {
                if (resultLeft.searchTextCount !== resultRight.searchTextCount) {
                  return resultRight.searchTextCount - resultLeft.searchTextCount;
                } else if (resultLeft.hitCount !== resultRight.hitCount) {
                  return resultRight.hitCount - resultLeft.hitCount;
                } else {
                  return resultRight.id - resultLeft.id;
                }
              });
              var searchResultList = '<ul class=\"search-result-list\">';
              resultItems.forEach(function (result) {
                searchResultList += result.item;
              })
              searchResultList += "</ul>";
              resultContent.innerHTML = searchResultList;
            }
          }

          if ('auto' === 'auto') {
            input.addEventListener('input', inputEventFunction);
          } else {
            $('.search-icon').click(inputEventFunction);
            input.addEventListener('keypress', function (event) {
              if (event.keyCode === 13) {
                inputEventFunction();
              }
            });
          }

          // remove loading animation
          $(".local-search-pop-overlay").remove();
          $('body').css('overflow', '');

          proceedsearch();
        }
      });
    }

    // handle and trigger popup window;
    $('.popup-trigger').click(function(e) {
      e.stopPropagation();
      if (isfetched === false) {
        searchFunc(path, 'local-search-input', 'local-search-result');
      } else {
        proceedsearch();
      };
    });

    $('.popup-btn-close').click(onPopupClose);
    $('.popup').click(function(e){
      e.stopPropagation();
    });
    $(document).on('keyup', function (event) {
      var shouldDismissSearchPopup = event.which === 27 &&
        $('.search-popup').is(':visible');
      if (shouldDismissSearchPopup) {
        onPopupClose();
      }
    });
  </script>





  

  

  

  
  

  

  

  

  
<script>
  ((window.gitter = {}).chat = {}).options = {
    //room替换成自己的聊天室名称即可，room的名称规则是：username/roomname
    room: 'sushengbuhuo-chat/mychat'
  };
</script>
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script>

</body>
</html>
